mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:58:59 +02:00
fixed cleanup - unload
This commit is contained in:
parent
733d93039f
commit
8566d84709
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clean: function(entityID) {
|
unload: function(entityID) {
|
||||||
Script.update.disconnect(_this.update);
|
Script.update.disconnect(_this.update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ function mousePressEvent(event) {
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
toolBar.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);
|
Entities.deleteEntity(recordAreaEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue