aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.effect-pulsate.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.effect-pulsate.js')
-rw-r--r--ui/jquery.ui.effect-pulsate.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/ui/jquery.ui.effect-pulsate.js b/ui/jquery.ui.effect-pulsate.js
index 61d86df13..5bbff1e3d 100644
--- a/ui/jquery.ui.effect-pulsate.js
+++ b/ui/jquery.ui.effect-pulsate.js
@@ -11,9 +11,22 @@
* Depends:
* jquery.ui.effect.js
*/
-(function( $, undefined ) {
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
-$.effects.effect.pulsate = function( o, done ) {
+ // AMD. Register as an anonymous module.
+ define([
+ "jquery",
+ "./jquery.ui.effect"
+ ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery );
+ }
+}(function( $ ) {
+
+return $.effects.effect.pulsate = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "show" ),
show = mode === "show",
@@ -60,4 +73,4 @@ $.effects.effect.pulsate = function( o, done ) {
elem.dequeue();
};
-})(jQuery);
+}));