Closed michalfialadev closed 1 year ago
Thank you for spending time reporting this issue. However, we've already fixed this in the master
branch of Phaser, and it will be part of the next beta release.
For the record, the stop
method now bails if the Tween destroy state has been set. Although really if the Tween is being re-used over and over, it should be set to persist: true
in the tween config, but this will at least stop a runtime error.
For the record, the
stop
method now bails if the Tween destroy state has been set. Although really if the Tween is being re-used over and over, it should be set topersist: true
in the tween config, but this will at least stop a runtime error.
persist: true
is the proper way to do it, thanks!
Version
Description
ISSUE When creating a Tween and keeping a reference, then after the tween completes and we call:
myTweenRef.stop()
app crashes with following error log:
TypeError: this.callbacks is null
NOTES
Example Test Code
NOTE:
this.animTween
has finished at this point.////////////////////////////////////// // PHASER code in question that throws //////////////////////////////////////
Additional Information