diff --git a/src/effects.js b/src/effects.js index 727c1a7a9..976fe765b 100644 --- a/src/effects.js +++ b/src/effects.js @@ -350,7 +350,8 @@ jQuery.fx.prototype = { // Start an animation from one number to another custom: function( from, to, unit ) { var self = this, - fx = jQuery.fx; + fx = jQuery.fx, + raf; this.startTime = jQuery.now(); this.start = from; @@ -369,13 +370,14 @@ jQuery.fx.prototype = { // Use requestAnimationFrame instead of setInterval if available if ( requestAnimationFrame ) { timerId = 1; - requestAnimationFrame(function raf() { + raf = function() { // When timerId gets set to null at any point, this stops if ( timerId ) { requestAnimationFrame( raf ); fx.tick(); } - }); + }; + requestAnimationFrame( raf ); } else { timerId = setInterval( fx.tick, fx.interval ); } diff --git a/src/sizzle b/src/sizzle index f12b93092..80f2b81d1 160000 --- a/src/sizzle +++ b/src/sizzle @@ -1 +1 @@ -Subproject commit f12b9309269ba7e705a99efe099f86ed1fe98d58 +Subproject commit 80f2b81d1fbc13d62afb91cb87e1452fbbec1ef4