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:
a220c81
)
Make the interval between two animations tick public: jQuery.fx.interval. Fixes ...
author
lrbabe
<lrbabe@lrbabe-laptop>
Fri, 25 Jun 2010 14:24:36 +0000
(16:24 +0200)
committer
jeresig
<jeresig@gmail.com>
Fri, 24 Sep 2010 14:11:05 +0000
(10:11 -0400)
src/effects.js
patch
|
blob
|
history
diff --git
a/src/effects.js
b/src/effects.js
index
9644194
..
d1d873d
100644
(file)
--- a/
src/effects.js
+++ b/
src/effects.js
@@
-329,7
+329,7
@@
jQuery.fx.prototype = {
this.now = this.start;
this.pos = this.state = 0;
- var self = this;
+ var self = this, fx = jQuery.fx;
function t( gotoEnd ) {
return self.step(gotoEnd);
}
@@
-337,7
+337,7
@@
jQuery.fx.prototype = {
t.elem = this.elem;
if ( t() && jQuery.timers.push(t) && !timerId ) {
- timerId = setInterval(jQuery.fx.tick, 13);
+ timerId = setInterval(fx.tick, fx.interval);
}
},
@@
-447,6
+447,8
@@
jQuery.extend( jQuery.fx, {
jQuery.fx.stop();
}
},
+
+ interval: 13,
stop: function() {
clearInterval( timerId );