repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 1304a08267d088370407c0627caf1ed4f098e08c:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 1304a08267d088370407c0627caf1ed4f098e08c
Author: James Baicoianu 
Date:   Fri Jul 24 19:04:05 2020 -0700

    Use roomid as part of unique object id to avoid id collisions across rooms

diff --git a/scripts/room.js b/scripts/room.js
index 9ced66606c6e6b5d34b8c6acf6b376bada882a48..
index ..f2f8266ca741223ac11d7460ef7afc6f94a3d109 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1161,7 +1161,7 @@ elation.require([
       if (this.jsobjects[objectargs.js_id]) {
         objectargs.js_id = objectargs.js_id + '_' + window.uniqueId();
       }
-      var object = parentobj.spawn(realtype, objectargs.js_id, objectargs);
+      var object = parentobj.spawn(realtype, this.roomid + '_' + objectargs.js_id, objectargs);
       if (objectargs.js_id) {
         this.jsobjects[objectargs.js_id] = object.getProxyObject(customElement);
       }

-----END OF PAGE-----