We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df6110c commit fe420c0Copy full SHA for fe420c0
ui/selectmenu.js
@@ -7,14 +7,24 @@
7
* http://jquery.org/license
8
*
9
* http://api.jqueryui.com/selectmenu
10
- *
11
- * Depends:
12
- * jquery.ui.core.js
13
- * jquery.ui.widget.js
14
- * jquery.ui.position.js
15
- * jquery.ui.menu.js
16
*/
17
-(function( $, undefined ) {
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([
+ "jquery",
+ "./core",
18
+ "./widget",
19
+ "./position",
20
+ "./menu"
21
+ ], factory );
22
+ } else {
23
24
+ // Browser globals
25
+ factory( jQuery );
26
+ }
27
+}(function( $ ) {
28
29
return $.widget( "ui.selectmenu", {
30
version: "@VERSION",
@@ -533,4 +543,4 @@ return $.widget( "ui.selectmenu", {
533
543
}
534
544
});
535
545
536
-}( jQuery ));
546
+}));
0 commit comments