Skip to content

Commit 68cc768

Browse files
committed
Updated the shutdown method.
1 parent f81856a commit 68cc768

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

v3/src/input/local/SceneInputManager.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,17 @@ var SceneInputManager = new Class({
109109
// Scene that owns this is shutting down
110110
shutdown: function ()
111111
{
112-
this._list = [];
113-
this._over = [];
114-
this._draggable = [];
115-
this._pendingRemoval = [];
116-
this._pendingInsertion = [];
112+
this.children.size = 0;
113+
this.children.list = [];
114+
this.children.pendingRemoval = [];
115+
this.children.pendingInsertion = [];
116+
117+
for (var i = 0; i < 10; i++)
118+
{
119+
this.children.draggable[i] = [];
120+
this.children.over[i] = [];
121+
this.children.down[i] = [];
122+
}
117123
},
118124

119125
// Game level nuke

0 commit comments

Comments
 (0)