repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 87ae39423484105b09bee4197c3fa9dcf4b2615f:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 87ae39423484105b09bee4197c3fa9dcf4b2615f
Author: James Baicoianu 
Date:   Thu Oct 19 21:08:41 2017 -0700

    room.appendChild(object)

diff --git a/scripts/room.js b/scripts/room.js
index b0583826ff5ab21282ad569802eaad35145d02fa..
index ..9d5f4906835e098aa9882cc199c9b1540a5b11fa 100644
--- 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-----