]> source.dussan.org Git - jquery.git/commitdiff
Added a fix for easing problems (fall back to "linear" if swing doesn't exist) (bug...
authorJohn Resig <jeresig@gmail.com>
Thu, 21 Jun 2007 03:09:04 +0000 (03:09 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 21 Jun 2007 03:09:04 +0000 (03:09 +0000)
src/fx/fx.js

index f53b2b29e5ed243c53f64af41c8b5e97c419316c..acd51226a5bce153d7930101d2b96d77eff93151 100644 (file)
@@ -318,7 +318,7 @@ jQuery.fn.extend({
                        for ( var p in prop )
                                if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
                                        return jQuery.isFunction(opt.complete) && opt.complete.apply(this);
-               
+
                        this.curAnim = jQuery.extend({}, prop);
                        
                        jQuery.each( prop, function(name, val){
@@ -364,7 +364,7 @@ jQuery.extend({
                        complete: fn || !fn && easing || 
                                jQuery.isFunction( speed ) && speed,
                        duration: speed,
-                       easing: fn && easing || easing && easing.constructor != Function && easing || "swing"
+                       easing: fn && easing || easing && easing.constructor != Function && easing || (jQuery.easing.swing ? "swing" : "linear")
                };
 
                opt.duration = (opt.duration && opt.duration.constructor == Number ?