repo: janusweb action: commit revision: path_from: revision_from: 5d6b93eaa5ddee3e4e39626a4017bf8a71ab3636: path_to: revision_to:
commit 5d6b93eaa5ddee3e4e39626a4017bf8a71ab3636 Author: James BaicoianuDate: Wed Apr 24 17:14:54 2019 -0700 Don't try to call room.createObject if room doesn't exist diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -673,7 +673,9 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
}
}
this.createObject = function(type, args) {
- return this.room.createObject(type, args, this);
+ if (this.room) {
+ return this.room.createObject(type, args, this);
+ }
}
this.appendChild = function(obj) {
var proxyobj = obj
-----END OF PAGE-----