Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated Ticker with fix for multiple timeouts.

Signed-off-by: Grant Skinner <info@gskinner.com>
  • Loading branch information...
commit e5b57f681498a8f2e9b51adc2cf1f47e4c75f604 1 parent b1e3da3
@gskinner gskinner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Ticker.js
View
2  lib/Ticker.js
@@ -243,7 +243,7 @@ var Ticker = function() {
Ticker.setInterval = function(interval) {
Ticker._lastTime = Ticker._getTime();
Ticker._interval = interval;
- if (Ticker.timeoutID) { clearTimeout(Ticker.timeoutID); }
+ if (Ticker.timeoutID != null) { clearTimeout(Ticker.timeoutID); }
if (Ticker.useRAF) {
var f = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame || window.msRequestAnimationFrame;
Please sign in to comment.
Something went wrong with that request. Please try again.