Skip to content
Permalink
Browse files

Selectmenu: Add UMD wrapper

  • Loading branch information
tjvantoll committed Feb 21, 2014
1 parent df6110c commit fe420c0eaccb490e2f66423c60a896b88da79395
Showing with 18 additions and 8 deletions.
  1. +18 −8 ui/selectmenu.js
@@ -7,14 +7,24 @@
* http://jquery.org/license
*
* http://api.jqueryui.com/selectmenu
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.position.js
* jquery.ui.menu.js
*/
(function( $, undefined ) {
(function( factory ) {
if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
define([
"jquery",
"./core",
"./widget",
"./position",
"./menu"
], factory );
} else {

// Browser globals
factory( jQuery );
}
}(function( $ ) {

return $.widget( "ui.selectmenu", {
version: "@VERSION",
@@ -533,4 +543,4 @@ return $.widget( "ui.selectmenu", {
}
});

}( jQuery ));
}));

0 comments on commit fe420c0

Please sign in to comment.
You can’t perform that action at this time.