git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
831b15b
)
Landing a fix for a case where the animation timer wasn't getting stopped (thanks...
author
John Resig
<jeresig@gmail.com>
Fri, 13 Feb 2009 16:15:23 +0000
(16:15 +0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 13 Feb 2009 16:15:23 +0000
(16:15 +0000)
src/fx.js
patch
|
blob
|
history
diff --git
a/src/fx.js
b/src/fx.js
index
3d00515
..
724e21f
100644
(file)
--- a/
src/fx.js
+++ b/
src/fx.js
@@
-285,7
+285,7
@@
jQuery.fx.prototype = {
t.elem = this.elem;
- if ( t() && jQuery.timers.push(t) == 1 ) {
+ if ( t() && jQuery.timers.push(t) && !timerId ) {
timerId = setInterval(function(){
var timers = jQuery.timers;
@@
-295,6
+295,7
@@
jQuery.fx.prototype = {
if ( !timers.length ) {
clearInterval( timerId );
+ timerId = undefined;
}
}, 13);
}