Bug Tracker

Changeset 2131

Show
Ignore:
Timestamp:
06/21/07 03:09:04 (1 year ago)
Author:
jeresig
Message:

Added a fix for easing problems (fall back to "linear" if swing doesn't exist) (bug #1212).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/fx/fx.js

    r2130 r2131  
    319319                if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) 
    320320                    return jQuery.isFunction(opt.complete) && opt.complete.apply(this); 
    321          
     321 
    322322            this.curAnim = jQuery.extend({}, prop); 
    323323             
     
    365365                jQuery.isFunction( speed ) && speed, 
    366366            duration: speed, 
    367             easing: fn && easing || easing && easing.constructor != Function && easing || "swing" 
     367            easing: fn && easing || easing && easing.constructor != Function && easing || (jQuery.easing.swing ? "swing" : "linear") 
    368368        }; 
    369369