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 77 * http://jquery.org/license
88 *
99 * 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
1610 */
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 ( $ ) {
1828
1929return $ . widget ( "ui.selectmenu" , {
2030 version : "@VERSION" ,
@@ -533,4 +543,4 @@ return $.widget( "ui.selectmenu", {
533543 }
534544} ) ;
535545
536- } ( jQuery ) ) ;
546+ } ) ) ;
You can’t perform that action at this time.
0 commit comments