diff --git a/examples/entityScripts/recordingEntityScript.js b/examples/entityScripts/recordingEntityScript.js index ede6f4fbe2..6f41d20e0e 100644 --- a/examples/entityScripts/recordingEntityScript.js +++ b/examples/entityScripts/recordingEntityScript.js @@ -80,7 +80,7 @@ } } }, - clean: function(entityID) { + unload: function(entityID) { Script.update.disconnect(_this.update); } } diff --git a/examples/entityScripts/recordingMaster.js b/examples/entityScripts/recordingMaster.js index 3cec521ce0..718d47eb92 100644 --- a/examples/entityScripts/recordingMaster.js +++ b/examples/entityScripts/recordingMaster.js @@ -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); }