aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.effect-bounce.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.effect-bounce.js')
-rw-r--r--ui/jquery.ui.effect-bounce.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/ui/jquery.ui.effect-bounce.js b/ui/jquery.ui.effect-bounce.js
index 107a6ea94..01a83861c 100644
--- a/ui/jquery.ui.effect-bounce.js
+++ b/ui/jquery.ui.effect-bounce.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.bounce = function( o, done ) {
+return $.effects.effect.bounce = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
@@ -110,4 +123,4 @@ $.effects.effect.bounce = function( o, done ) {
};
-})(jQuery);
+}));