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

Method resolveOptions

packages/core/ui/core/bindable/index.ts:588–601  ·  view source on GitHub ↗
(obj: Object, properties: Array<string>)

Source from the content-addressed store, hash-verified

586 }
587
588 private resolveOptions(obj: Object, properties: Array<string>): { instance: WeakRef<Object>; property: any } {
589 const objectsAndProperties = this.resolveObjectsAndProperties(obj, properties);
590 if (objectsAndProperties.length > 0) {
591 const resolvedObj = objectsAndProperties[objectsAndProperties.length - 1].instance;
592 const prop = objectsAndProperties[objectsAndProperties.length - 1].property;
593
594 return {
595 instance: new WeakRef(this.sourceAsObject(resolvedObj)),
596 property: prop,
597 };
598 }
599
600 return null;
601 }
602
603 private updateOptions(options: { instance: WeakRef<any>; property: string }, value: any) {
604 let optionsInstance;

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls 2

sourceAsObjectMethod · 0.95

Tested by

no test coverage detected