diff options
-rw-r--r-- | ui/jquery.effects.fade.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/ui/jquery.effects.fade.js b/ui/jquery.effects.fade.js index 66029b51c..3989ee908 100644 --- a/ui/jquery.effects.fade.js +++ b/ui/jquery.effects.fade.js @@ -14,23 +14,16 @@ $.effects.effect.fade = function( o, done ) { var el = $( this ), - mode = $.effects.setMode( el, o.mode || "toggle" ), - hide = mode === "hide"; + mode = $.effects.setMode( el, o.mode || "toggle" ); - el.show(); el.animate({ - opacity: hide ? 0 : 1 + opacity: mode }, { queue: false, duration: o.duration, easing: o.easing, - complete: function() { - if ( hide ) { - el.hide(); - } - done(); - } + complete: done }); }; -})(jQuery); +})( jQuery ); |