Skip to content

Commit

Permalink
jquery fx: adding jQuery.fx.def as default speed for animations
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed May 2, 2008
1 parent 42161a1 commit 87758bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fx.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit 87758bb

Please sign in to comment.