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

Method bind

packages/core/ui/core/bindable/index.ts:190–197  ·  view source on GitHub ↗
(source: any)

Source from the content-addressed store, hash-verified

188 }
189
190 public bind(source: any): void {
191 const target = this.targetOptions.instance.get();
192 if (this.sourceIsBindingContext && target instanceof Observable && this.targetOptions.property !== 'bindingContext') {
193 target.on('bindingContextChange', this.bindingContextChanged, this);
194 }
195
196 this.update(source);
197 }
198
199 private update(source: any): void {
200 this.clearSource();

Callers 15

bindFunction · 0.95
loaderFunction · 0.80
constructorMethod · 0.80
ApplicationCommonClass · 0.80
itemTemplateSelectorMethod · 0.80
bindingContextChangedFunction · 0.80
_parentChangedFunction · 0.80
_showNativeModalViewMethod · 0.80
_applyGlassEffectMethod · 0.80

Calls 3

updateMethod · 0.95
getMethod · 0.65
onMethod · 0.65

Tested by 2

testFunction · 0.64
testFunction · 0.64