We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e271c63 commit fcca6baCopy full SHA for fcca6ba
1 file changed
src/tween/TweenManager.js
@@ -156,15 +156,15 @@ Phaser.TweenManager.prototype = {
156
{
157
for (i = 0, len = this._tweens.length; i < len; i++)
158
159
- if (obj === this._tweens[i]._object)
+ if (obj === this._tweens[i].target)
160
161
this.remove(this._tweens[i]);
162
}
163
164
165
for (i = 0, len = this._add.length; i < len; i++)
166
167
- if (obj === this._add[i]._object)
+ if (obj === this._add[i].target)
168
169
this.remove(this._add[i]);
170
@@ -279,7 +279,7 @@ Phaser.TweenManager.prototype = {
279
isTweening: function(object) {
280
281
return this._tweens.some(function(tween) {
282
- return tween._object === object;
+ return tween.target === object;
283
});
284
285
},
0 commit comments