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

Method sourceAsObject

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

Source from the content-addressed store, hash-verified

153 }
154
155 private sourceAsObject(source: any): any {
156 /* tslint:disable */
157 const objectType = typeof source;
158 if (objectType === 'number') {
159 source = new Number(source);
160 } else if (objectType === 'boolean') {
161 source = new Boolean(source);
162 } else if (objectType === 'string') {
163 source = new String(source);
164 }
165
166 /* tslint:enable */
167 return source;
168 }
169
170 private bindingContextChanged(data: PropertyChangeData): void {
171 const target = this.targetOptions.instance.get();

Callers 2

updateMethod · 0.95
resolveOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected