File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 7
7
* http://jquery.org/license
8
8
*
9
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
10
*/
17
- ( function ( $ , undefined ) {
11
+ ( function ( factory ) {
12
+ if ( typeof define === "function" && define . amd ) {
13
+
14
+ // AMD. Register as an anonymous module.
15
+ define ( [
16
+ "jquery" ,
17
+ "./core" ,
18
+ "./widget" ,
19
+ "./position" ,
20
+ "./menu"
21
+ ] , factory ) ;
22
+ } else {
23
+
24
+ // Browser globals
25
+ factory ( jQuery ) ;
26
+ }
27
+ } ( function ( $ ) {
18
28
19
29
return $ . widget ( "ui.selectmenu" , {
20
30
version : "@VERSION" ,
@@ -533,4 +543,4 @@ return $.widget( "ui.selectmenu", {
533
543
}
534
544
} ) ;
535
545
536
- } ( jQuery ) ) ;
546
+ } ) ) ;
You can’t perform that action at this time.
0 commit comments