()
| 136 | } |
| 137 | |
| 138 | public clearSource(): void { |
| 139 | this.propertyChangeListeners.forEach((observable, index, map) => { |
| 140 | removeWeakEventListener(observable, Observable.propertyChangeEvent, this.onSourcePropertyChanged, this); |
| 141 | }); |
| 142 | |
| 143 | this.propertyChangeListeners.clear(); |
| 144 | |
| 145 | // if (this.source) { |
| 146 | // this.source.clear(); |
| 147 | // } |
| 148 | |
| 149 | if (this.sourceOptions) { |
| 150 | this.sourceOptions.instance = undefined; |
| 151 | this.sourceOptions = undefined; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | private sourceAsObject(source: any): any { |
| 156 | /* tslint:disable */ |
no test coverage detected