repo: janusweb action: commit revision: path_from: revision_from: bfad621723e5efc3d7514ab4d9299a15c9def335: path_to: revision_to:
commit bfad621723e5efc3d7514ab4d9299a15c9def335 Author: James BaicoianuDate: Thu May 9 12:24:03 2019 -0700 Store room.completed flag to indicate loading status diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -92,6 +92,7 @@ elation.require([
this.sounds = {};
this.videos = {};
this.loaded = false;
+ this.completed = false;
this.parseerror = false;
this.roomscripts = [];
@@ -1352,6 +1353,7 @@ elation.require([
if (this.pendingassets.length == 0) {
this.applyingEdits = false;
setTimeout(elation.bind(this, function() {
+ this.completed = true;
elation.events.fire({element: this, type: 'room_load_complete'});
}), 0);
}
-----END OF PAGE-----