Skip to content

Commit 671d007

Browse files
committed
Ensured removeFrom also removes from the _add array
1 parent 1b1f78a commit 671d007

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/tween/TweenManager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ Phaser.TweenManager.prototype = {
102102
this.remove(this._tweens[t]);
103103
}
104104
}
105+
for (t = 0, len = this._add.length; t < len; t++)
106+
{
107+
if (obj === this._add[t]._object)
108+
{
109+
this.remove(this._add[t]);
110+
}
111+
}
105112
}
106113

107114
},

0 commit comments

Comments
 (0)