Permalink
Browse files

Set timerId to true instead of a number so that intervals set to 1 ar…

…e not accidentally cleared when stopped. Fixes #9678.

- Adding a working test case would not be possible in this case, but all tests pass.
  • Loading branch information...
1 parent 96501d3 commit ab1504f14f56944a5a6297c68b323f0af01d5be8 @timmywil timmywil committed Jun 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/effects.js
View
@@ -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 ) {

0 comments on commit ab1504f

Please sign in to comment.