Timer checks now for running inside while loop. Any event which causes a call to Timer#stop is now safe.

This commit is contained in:
Georgios Kaleadis
2014-02-06 17:28:39 +01:00
parent e88b10323a
commit 8ef403cfe7
+1 -1
View File
@@ -327,7 +327,7 @@ Phaser.Timer.prototype = {
{
this._i = 0;
while (this._i < this._len)
while (this._i < this._len && this.running)
{
if (this._now >= this.events[this._i].tick)
{