aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.droppable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.droppable.js')
-rw-r--r--ui/jquery.ui.droppable.js22
1 files changed, 20 insertions, 2 deletions
diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js
index f9f2620da..e78ff1f8c 100644
--- a/ui/jquery.ui.droppable.js
+++ b/ui/jquery.ui.droppable.js
@@ -14,7 +14,23 @@
* jquery.ui.mouse.js
* jquery.ui.draggable.js
*/
-(function( $, undefined ) {
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([
+ "jquery",
+ "./jquery.ui.core",
+ "./jquery.ui.widget",
+ "./jquery.ui.mouse",
+ "./jquery.ui.draggable"
+ ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery );
+ }
+}(function( $ ) {
$.widget( "ui.droppable", {
version: "@VERSION",
@@ -401,4 +417,6 @@ $.ui.ddmanager = {
}
};
-})( jQuery );
+return $.ui.droppable;
+
+}));