Commit 87758bbe authored by Ariel Flesler's avatar Ariel Flesler

jquery fx: adding jQuery.fx.def as default speed for animations

parent 42161a1e
...@@ -218,7 +218,7 @@ jQuery.extend({ ...@@ -218,7 +218,7 @@ jQuery.extend({
opt.duration = (opt.duration && opt.duration.constructor == Number ? opt.duration = (opt.duration && opt.duration.constructor == Number ?
opt.duration : opt.duration :
jQuery.fx.speeds[opt.duration]) || 400; jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;
// Queueing // Queueing
opt.old = opt.complete; opt.old = opt.complete;
...@@ -404,7 +404,8 @@ jQuery.fx.prototype = { ...@@ -404,7 +404,8 @@ jQuery.fx.prototype = {
jQuery.extend( jQuery.fx, { jQuery.extend( jQuery.fx, {
speeds:{ speeds:{
slow: 600, slow: 600,
fast: 200 fast: 200,
def: 400 //default speed
}, },
step: { step: {
scrollLeft: function(fx){ scrollLeft: function(fx){
......
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