diff options
author | Chad Austin <chad@imvu.com> | 2014-05-08 13:51:45 -0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-05-21 22:58:31 +0700 |
commit | 9759bdbc104d860e8eadbb0f35e0d3dedb48035d (patch) | |
tree | 28c2e59905ec25aceb98035aeb6e263d3b0327bd /src | |
parent | 1f7d9ea73de5fccbedf642b68ff600a5b0285061 (diff) |
checkpoint returning JS instances out of embind
Diffstat (limited to 'src')
-rw-r--r-- | src/embind/embind.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 536d53fc..25c3191a 100644 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -1757,7 +1757,9 @@ function __embind_create_inheriting_constructor(constructorName, wrapperType, pr } }.bind(this)); - this.__parent = wrapperPrototype; + Object.defineProperty(this, '__parent', { + value: wrapperPrototype + }); this.initialize.apply(this, arraySlice.call(arguments)); }); @@ -1766,7 +1768,9 @@ function __embind_create_inheriting_constructor(constructorName, wrapperType, pr var inner = baseConstructor.__$implement.apply( undefined, [this].concat(arraySlice.call(arguments))); - this.$$ = inner.$$; + Object.defineProperty(this, '$$', { + value: inner.$$ + }); }; ctor.prototype = Object.create(wrapperPrototype); |