| 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"); |