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:
42161a1
)
jquery fx: adding jQuery.fx.def as default speed for animations
author
Ariel Flesler
<aflesler@gmail.com>
Fri, 2 May 2008 14:12:26 +0000
(14:12 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Fri, 2 May 2008 14:12:26 +0000
(14:12 +0000)
src/fx.js
patch
|
blob
|
history
diff --git
a/src/fx.js
b/src/fx.js
index
d76dbdb
..
5f3a492
100644
(file)
--- a/
src/fx.js
+++ b/
src/fx.js
@@
-218,7
+218,7
@@
jQuery.extend({
opt.duration = (opt.duration && opt.duration.constructor == Number ?
opt.duration :
- jQuery.fx.speeds[opt.duration]) || 400;
+ jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;
// Queueing
opt.old = opt.complete;
@@
-404,7
+404,8
@@
jQuery.fx.prototype = {
jQuery.extend( jQuery.fx, {
speeds:{
slow: 600,
- fast: 200
+ fast: 200,
+ def: 400 //default speed
},
step: {
scrollLeft: function(fx){