diff options
author | Chad Austin <chad@imvu.com> | 2013-04-29 18:29:43 -0700 |
---|---|---|
committer | Chad Austin <chad@imvu.com> | 2013-05-02 18:55:00 -0700 |
commit | 54526667562b394f1c3673a48780b18000d798a6 (patch) | |
tree | 50f44dc0edcd0966b86fabb4682df1a4be63b87c /src | |
parent | 9b2cb58a355d4645fe2c7352a0408dc43e99d538 (diff) |
checkpoint object handle composition
Diffstat (limited to 'src')
-rwxr-xr-x | src/embind/embind.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 988526b4..78f54e31 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -1054,6 +1054,16 @@ function getInstanceTypeName(handle) { return handle.$$.ptrType.registeredClass.name; } +ClassHandle.prototype.isAliasOf = function(other) { + if (!(this instanceof ClassHandle)) { + return false; + } + if (!(other instanceof ClassHandle)) { + return false; + } + return this.$$.ptr == other.$$.ptr; +} + ClassHandle.prototype.clone = function() { if (!this.$$.ptr) { throwBindingError(getInstanceTypeName(this) + ' instance already deleted'); |