Skip to content

Commit ab1504f

Browse files
committed
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.
1 parent 96501d3 commit ab1504f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/effects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ jQuery.fx.prototype = {
411411
if ( t() && jQuery.timers.push(t) && !timerId ) {
412412
// Use requestAnimationFrame instead of setInterval if available
413413
if ( requestAnimationFrame ) {
414-
timerId = 1;
414+
timerId = true;
415415
raf = function() {
416416
// When timerId gets set to null at any point, this stops
417417
if ( timerId ) {

0 commit comments

Comments
 (0)