aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChad Austin <chad@chadaustin.me>2012-10-30 16:05:26 -0700
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:21:24 +0300
commit6e2ce5357fb9938974201d8ab6e6d724d66987f5 (patch)
treea9a4d4a06e141e9197e8ec8b3b0cd1ef463c3a98 /src
parentdf6ba03eed0f08abe51fb1a5afd3e9d2c94a878f (diff)
Add the ability to extend the prototype of native classes from JavaScript.
Diffstat (limited to 'src')
-rw-r--r--src/embind/embind.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 3e916ed4..c4e7d843 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -462,7 +462,7 @@ function __embind_register_class(
var body = constructor.body;
body.apply(this, arguments);
});
- constructor.prototype = Object.create(Handle.prototype);
+ constructor.prototype = Handle.prototype;
typeRegistry[classType] = {
name: name,