mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:17:40 +02:00
Remove update loop refs
This commit is contained in:
parent
0ad238a508
commit
e5c42c76a2
1 changed files with 1 additions and 4 deletions
|
@ -223,15 +223,12 @@
|
||||||
// preload() will be called when the entity has become visible (or known) to the interface
|
// preload() will be called when the entity has become visible (or known) to the interface
|
||||||
// it gives us a chance to set our local JavaScript object up. In this case it means:
|
// it gives us a chance to set our local JavaScript object up. In this case it means:
|
||||||
// * remembering our entityID, so we can access it in cases where we're called without an entityID
|
// * remembering our entityID, so we can access it in cases where we're called without an entityID
|
||||||
// * connecting to the update signal so we can check our grabbed state
|
|
||||||
preload: function(entityID) {
|
preload: function(entityID) {
|
||||||
this.entityID = entityID;
|
this.entityID = entityID;
|
||||||
Script.update.connect(this.update);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// unload() will be called when our entity is no longer available. It may be because we were deleted,
|
// unload() will be called when our entity is no longer available. It may be because we were deleted,
|
||||||
// or because we've left the domain or quit the application. In all cases we want to unhook our connection
|
// or because we've left the domain or quit the application.
|
||||||
// to the update signal
|
|
||||||
unload: function(entityID) {
|
unload: function(entityID) {
|
||||||
|
|
||||||
if (this.hasSpotlight) {
|
if (this.hasSpotlight) {
|
||||||
|
|
Loading…
Reference in a new issue