diff options
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/effects.js b/src/effects.js index 3118da407..9965eee78 100644 --- a/src/effects.js +++ b/src/effects.js @@ -445,9 +445,7 @@ Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { jQuery.each([ "toggle", "show", "hide" ], function( i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" || - // special check for .toggle( handler, handler, ... ) - ( !i && jQuery.isFunction( speed ) && jQuery.isFunction( easing ) ) ? + return speed == null || typeof speed === "boolean" ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; |