Commit ab1504f1 authored by timmywil's avatar timmywil

Set timerId to true instead of a number so that intervals set to 1 are not...

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.
parent 96501d38
...@@ -411,7 +411,7 @@ jQuery.fx.prototype = { ...@@ -411,7 +411,7 @@ jQuery.fx.prototype = {
if ( t() && jQuery.timers.push(t) && !timerId ) { if ( t() && jQuery.timers.push(t) && !timerId ) {
// Use requestAnimationFrame instead of setInterval if available // Use requestAnimationFrame instead of setInterval if available
if ( requestAnimationFrame ) { if ( requestAnimationFrame ) {
timerId = 1; timerId = true;
raf = function() { raf = function() {
// When timerId gets set to null at any point, this stops // When timerId gets set to null at any point, this stops
if ( timerId ) { if ( timerId ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment