aboutsummaryrefslogtreecommitdiff
path: root/src/embind
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-12 12:26:27 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 23:07:13 +0700
commit179248abb25b51ab674b11f5fd4cd7c289a91b52 (patch)
treedde833561d89860d2ec02421f52d98128a69892c /src/embind
parent91edf0395130e3c7a31318b9d546f0ca415c6274 (diff)
Bring back the ability to implement a C++ interface with a specific JavaScript object.
Diffstat (limited to 'src/embind')
-rw-r--r--src/embind/embind.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 0e3dfab1..2453a086 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -1830,10 +1830,11 @@ function __embind_create_inheriting_constructor(constructorName, wrapperType, pr
throwBindingError("Pass correct 'this' to __construct");
}
- var inner = baseConstructor.__$implement.apply(
+ var inner = baseConstructor.implement.apply(
undefined,
[this].concat(arraySlice.call(arguments)));
var $$ = inner.$$;
+ inner.notifyOnDestruction();
$$.preservePointerOnDelete = true;
Object.defineProperty(this, '$$', {
value: $$