Closed saintflow47 closed 3 months ago
Hi @saintflow47. Could you provide full source code and if possible a link to jsfiddle or codepen so we can investigate further? Thanks.
https://phaser.io/sandbox/DPz6DKZC
here is a minimal case
Hi @saintflow47. It seems there's a missing var
in the for
loop in the Phaser.Time.Timeline#clear
method. We have fixed this and pushed it to the master
branch. It will be part of the next release. Do test it out and let us know if you encounter any issues.
Version
Description
An issue happens on both versions when trying to destroy a timeline like this, even while it is playing. The error is different for each phaser version though.
Example Test Code
on 3.85.0-beta.1 the error is as follows: Uncaught ReferenceError: i is not defined at Timeline2.clear (phaser.js:233673:14) at Timeline2.destroy (phaser.js:233752:14)
on 3.80.1 the error is as follows: TypeError: Cannot read properties of null (reading 'events') at Timeline2.destroy (phaser.js:233464:41)