diff options
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r-- | ui/jquery.ui.core.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 6340c6d64..cb6760017 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -8,7 +8,17 @@ * * http://api.jqueryui.com/category/ui-core/ */ -(function( $, undefined ) { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define( [ "jquery" ], factory ); + } else { + + // Browser globals + factory( jQuery ); + } +}(function( $ ) { // $.ui might exist from components with no dependencies, e.g., $.ui.position $.ui = $.ui || {}; @@ -286,4 +296,4 @@ $.ui.plugin = { } }; -})( jQuery ); +})); |