MCPcopy Create free account
hub / github.com/NativeScript/android / extend

Function extend

test-app/app/src/main/assets/internal/ts_helpers.js:60–71  ·  view source on GitHub ↗
(thiz)

Source from the content-addressed store, hash-verified

58 }
59
60 function extend(thiz) {
61 var child = thiz.__proto__.__child;
62 if (!child.__extended) {
63 var parent = thiz.__proto__.__parent;
64 child.__extended = parent.extend(child.name, child.prototype, true);
65 // This will deal with "i instanceof child"
66 child[Symbol.hasInstance] = function (instance) {
67 return instance instanceof this.__extended;
68 }
69 }
70 return child.__extended;
71 };
72
73 Parent.__activityExtend = function (parent, name, implementationObject) {
74 __log("__activityExtend called");

Callers 1

__extendsFunction · 0.70

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected