mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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.
This commit is contained in:
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user