aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-04-29 18:29:43 -0700
committerChad Austin <chad@imvu.com>2013-05-02 18:55:00 -0700
commit54526667562b394f1c3673a48780b18000d798a6 (patch)
tree50f44dc0edcd0966b86fabb4682df1a4be63b87c /src
parent9b2cb58a355d4645fe2c7352a0408dc43e99d538 (diff)
checkpoint object handle composition
Diffstat (limited to 'src')
-rwxr-xr-xsrc/embind/embind.js10
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');