Skip to content

Commit ed603e4

Browse files
committed
Fixed an issue with the Stage getting into an infinite tick loop.
Signed-off-by: Grant Skinner <info@gskinner.com>
1 parent 0bfca74 commit ed603e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/easeljs/display/Stage.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ var p = Stage.prototype = new Container();
218218
if (!this.canvas) { return; }
219219
if (this.autoClear) { this.clear(); }
220220
Stage._snapToPixelEnabled = this.snapToPixelEnabled;
221-
if (this.tickOnUpdate) { this._tick(true); }
221+
if (this.tickOnUpdate) {
222+
if (this.tick == this.update) { var t=1; this.tick = null; }
223+
this._tick(true);
224+
if (t) { this.tick = this.update; }
225+
}
222226
this.draw(this.canvas.getContext("2d"), false, this.getConcatenatedMatrix(this._matrix));
223227
}
224228

0 commit comments

Comments
 (0)