diff options
author | timmywil <timmywillisn@gmail.com> | 2011-06-28 11:46:03 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-06-28 11:46:03 -0400 |
commit | ab1504f14f56944a5a6297c68b323f0af01d5be8 (patch) | |
tree | 8f1c9357286847fc111c18dfb325319c00894037 /src/effects.js | |
parent | 96501d38a935187461d45c40f17f8327b2e7cd91 (diff) | |
download | jquery-ab1504f14f56944a5a6297c68b323f0af01d5be8.tar.gz jquery-ab1504f14f56944a5a6297c68b323f0af01d5be8.zip |
Set timerId to true instead of a number so that intervals set to 1 are not accidentally cleared when stopped. Fixes #9678.
- Adding a working test case would not be possible in this case, but all tests pass.
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index 3a4e2663d..a7529a0f2 100644 --- a/src/effects.js +++ b/src/effects.js @@ -411,7 +411,7 @@ jQuery.fx.prototype = { if ( t() && jQuery.timers.push(t) && !timerId ) { // Use requestAnimationFrame instead of setInterval if available if ( requestAnimationFrame ) { - timerId = 1; + timerId = true; raf = function() { // When timerId gets set to null at any point, this stops if ( timerId ) { |