summaryrefslogtreecommitdiff
path: root/src/embind/embind.js
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-08 14:53:04 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 22:58:47 +0700
commitec70dcb7bc76221949c057b5284c256d9959579a (patch)
tree99edbc17ad1067084f1b4d101c5e3e7e28148e17 /src/embind/embind.js
parent416a5a9715928eb56770bf1f60d735c80ea07155 (diff)
Call __destruct on the JS implementation when the instance is destroyed.
Diffstat (limited to 'src/embind/embind.js')
-rw-r--r--src/embind/embind.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 3aa9fef7..ef16e952 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -1773,6 +1773,9 @@ function __embind_create_inheriting_constructor(constructorName, wrapperType, pr
});
};
+ wrapperPrototype.__destruct = function __destruct() {
+ };
+
ctor.prototype = Object.create(wrapperPrototype);
for (var p in properties) {
ctor.prototype[p] = properties[p];