diff options
Diffstat (limited to 'ui/jquery.ui.effect-size.js')
-rw-r--r-- | ui/jquery.ui.effect-size.js | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/ui/jquery.ui.effect-size.js b/ui/jquery.ui.effect-size.js index 6bdbd433d..1b01bf49a 100644 --- a/ui/jquery.ui.effect-size.js +++ b/ui/jquery.ui.effect-size.js @@ -11,9 +11,22 @@ * Depends: * jquery.ui.effect.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./jquery.ui.effect" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.effects.effect.size = function( o, done ) { +return $.effects.effect.size = function( o, done ) { // Create element var original, baseline, factor, @@ -220,4 +233,4 @@ $.effects.effect.size = function( o, done ) { }; -})(jQuery); +})); |