diff options
Diffstat (limited to 'ui/jquery.ui.effect.js')
-rw-r--r-- | ui/jquery.ui.effect.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ui/jquery.ui.effect.js b/ui/jquery.ui.effect.js index 3852cf5be..570561421 100644 --- a/ui/jquery.ui.effect.js +++ b/ui/jquery.ui.effect.js @@ -8,7 +8,17 @@ * * http://api.jqueryui.com/category/effects-core/ */ -(function($, undefined) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { var dataSpace = "ui-effects-"; @@ -1282,4 +1292,6 @@ $.each( baseEasings, function( name, easeIn ) { })(); -})(jQuery); +return $.effects; + +})); |