From 179248abb25b51ab674b11f5fd4cd7c289a91b52 Mon Sep 17 00:00:00 2001 From: Chad Austin Date: Mon, 12 May 2014 12:26:27 -0700 Subject: Bring back the ability to implement a C++ interface with a specific JavaScript object. --- src/embind/embind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/embind') 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: $$ -- cgit v1.2.3-18-g5258