diff options
Diffstat (limited to 'src/embind/embind.js')
-rw-r--r-- | src/embind/embind.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 25c3191a..3aa9fef7 100644 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -1760,11 +1760,11 @@ function __embind_create_inheriting_constructor(constructorName, wrapperType, pr Object.defineProperty(this, '__parent', { value: wrapperPrototype }); - this.initialize.apply(this, arraySlice.call(arguments)); + this.__construct.apply(this, arraySlice.call(arguments)); }); // It's a little nasty that we're modifying the wrapper prototype here. - wrapperPrototype.initialize = function initialize() { + wrapperPrototype.__construct = function __construct() { var inner = baseConstructor.__$implement.apply( undefined, [this].concat(arraySlice.call(arguments))); |