diff options
Diffstat (limited to 'ui/effect-fade.js')
-rw-r--r-- | ui/effect-fade.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/effect-fade.js b/ui/effect-fade.js index aba0ad482..ecc44722a 100644 --- a/ui/effect-fade.js +++ b/ui/effect-fade.js @@ -13,11 +13,11 @@ //>>docs: http://api.jqueryui.com/fade-effect/ //>>demos: http://jqueryui.com/effect/ -(function( factory ) { +( function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. - define([ + define( [ "jquery", "./effect" ], factory ); @@ -26,21 +26,21 @@ // Browser globals factory( jQuery ); } -}(function( $ ) { +}( function( $ ) { return $.effects.define( "fade", "toggle", function( options, done ) { var show = options.mode === "show"; $( this ) .css( "opacity", show ? 0 : 1 ) - .animate({ + .animate( { opacity: show ? 1 : 0 }, { queue: false, duration: options.duration, easing: options.easing, complete: done - }); -}); + } ); +} ); -})); +} ) ); |