diff options
Diffstat (limited to 'ui/jquery.ui.selectable.js')
-rw-r--r-- | ui/jquery.ui.selectable.js | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index 7b9d7b209..107fc33c5 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -13,9 +13,24 @@ * jquery.ui.mouse.js * jquery.ui.widget.js */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ + "jquery", + "./jquery.ui.core", + "./jquery.ui.mouse", + "./jquery.ui.widget" + ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { -$.widget("ui.selectable", $.ui.mouse, { +return $.widget("ui.selectable", $.ui.mouse, { version: "@VERSION", options: { appendTo: "body", @@ -274,4 +289,4 @@ $.widget("ui.selectable", $.ui.mouse, { }); -})(jQuery); +})); |