]> source.dussan.org Git - jquery.git/commitdiff
Set timerId to true instead of a number so that intervals set to 1 are not accidental...
authortimmywil <timmywillisn@gmail.com>
Tue, 28 Jun 2011 15:46:03 +0000 (11:46 -0400)
committertimmywil <timmywillisn@gmail.com>
Tue, 28 Jun 2011 15:46:03 +0000 (11:46 -0400)
- Adding a working test case would not be possible in this case, but all tests pass.

src/effects.js

index 3a4e2663d5d3c5a7c5d7e97c93b74dbc0b8b46d1..a7529a0f2b4e69adbb3d1b3fc2b33e1106d5be3a 100644 (file)
@@ -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 ) {