MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / clearSource

Method clearSource

packages/core/ui/core/bindable/index.ts:138–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 */

Callers 3

updateMethod · 0.95
unbindMethod · 0.95
clearBindingMethod · 0.95

Calls 3

removeWeakEventListenerFunction · 0.90
forEachMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected