repo: janusweb
action: commit
revision: 
path_from: 
revision_from: a66ad320edaf775a870c91343b94e0bf45e4355f:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit a66ad320edaf775a870c91343b94e0bf45e4355f
Author: James Baicoianu 
Date:   Thu Apr 20 03:43:48 2017 -0700

    Clear room.appliedchanges after processing edits

diff --git a/scripts/room.js b/scripts/room.js
index 1423f09a3c9ae5dd0864dfbb6384f57e907ec050..
index ..2a0fb475ef5bb6f050555e06e520cefb1c17338f 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -678,7 +678,6 @@ elation.require([
             }
           } else {
             hasNew = true;
-            newobj.sync = false;
             diff[(k.toLowerCase() + 's')].push(newobj);
             if (newobj.id && newobj.id.match(/^https?:/)) {
               diff.assets.objects.push({assettype: 'model', name: newobj.id, src: newobj.id});
@@ -691,11 +690,10 @@ elation.require([
           this.createRoomObjects(diff);
         }
       }));
+      // Clear the list of edits which have been applied this frame
+      this.appliedchanges = {};
       this.applyingEdits = false;
-      setTimeout(elation.bind(this, function() {
-        //this.locked = waslocked;
-        //this.appliedchanges = {};
-      }), 0);
+
     }
     this.applyDeleteXML = function(deletexml) {
       var del = elation.utils.parseXML(deletexml);

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