fixed cleanup - unload

This commit is contained in:
AlessandroSigna 2015-11-17 10:51:34 -08:00
parent 733d93039f
commit 8566d84709
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@
}
}
},
clean: function(entityID) {
unload: function(entityID) {
Script.update.disconnect(_this.update);
}
}

View file

@ -106,7 +106,7 @@ function mousePressEvent(event) {
function cleanup() {
toolBar.cleanup();
Entities.callEntityMethod(recordAreaEntity, 'clean'); //have to call this before deleting to avoid the JSON warnings
//Entities.callEntityMethod(recordAreaEntity, 'clean'); //have to call this before deleting to avoid the JSON warnings
Entities.deleteEntity(recordAreaEntity);
}