repo: janusweb action: commit revision: path_from: revision_from: 87ae39423484105b09bee4197c3fa9dcf4b2615f: path_to: revision_to:
commit 87ae39423484105b09bee4197c3fa9dcf4b2615f Author: James BaicoianuDate: Thu Oct 19 21:08:41 2017 -0700 room.appendChild(object) diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -924,6 +924,19 @@ elation.require([
return this.jsobjects[objectargs.js_id];
}
+ this.appendChild = function(obj) {
+ var proxyobj = obj
+ if (elation.utils.isString(obj)) {
+ proxyobj = this.jsobjects[obj];
+ }
+ if (proxyobj) {
+ //var realobj = this.room.getObjectFromProxy(proxyobj);
+ var realobj = proxyobj._target;
+ if (realobj) {
+ this.add(realobj);
+ }
+ }
+ }
this.removeObject = function(obj) {
var proxy = obj;
if (elation.utils.isString(obj)) {
-----END OF PAGE-----