aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-06-28 11:46:03 -0400
committertimmywil <timmywillisn@gmail.com>2011-06-28 11:46:03 -0400
commitab1504f14f56944a5a6297c68b323f0af01d5be8 (patch)
tree8f1c9357286847fc111c18dfb325319c00894037 /src/effects.js
parent96501d38a935187461d45c40f17f8327b2e7cd91 (diff)
downloadjquery-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.js2
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 ) {