diff options
Diffstat (limited to 'ui/jquery.ui.effect-scale.js')
-rw-r--r-- | ui/jquery.ui.effect-scale.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/ui/jquery.ui.effect-scale.js b/ui/jquery.ui.effect-scale.js index 42dc2281c..233e318c4 100644 --- a/ui/jquery.ui.effect-scale.js +++ b/ui/jquery.ui.effect-scale.js @@ -12,9 +12,23 @@ * jquery.ui.effect.js * jquery.ui.effect-size.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { -$.effects.effect.scale = function( o, done ) { + // AMD. Register as an anonymous module. + define([ + "jquery", + "./jquery.ui.effect", + "./jquery.ui.effect-size" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { + +return $.effects.effect.scale = function( o, done ) { // Create element var el = $( this ), @@ -76,4 +90,4 @@ $.effects.effect.scale = function( o, done ) { }; -})(jQuery); +})); |