diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-10-16 00:15:22 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-10-16 00:17:39 -0400 |
commit | d70e64bff2660cf5a801fe818f1170d5ea93e4fe (patch) | |
tree | 613dadf7762a2ecfb90326130eab6e2e1af59ffd /src/effects.js | |
parent | 6aae3e1038925f8f22d6c0aeedf74f0358890be4 (diff) | |
download | jquery-d70e64bff2660cf5a801fe818f1170d5ea93e4fe.tar.gz jquery-d70e64bff2660cf5a801fe818f1170d5ea93e4fe.zip |
fix effects tests failure
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 ); }; |