mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Better detection of when core is loaded twice. Fixes #5636 - Load ui.position before ui.core couse ui.core not execute.
This commit is contained in:
parent
fc093e9feb
commit
afaa03575f
15
ui/jquery.ui.core.js
vendored
15
ui/jquery.ui.core.js
vendored
@ -7,10 +7,19 @@
|
|||||||
*
|
*
|
||||||
* http://docs.jquery.com/UI
|
* http://docs.jquery.com/UI
|
||||||
*/
|
*/
|
||||||
;jQuery.ui || (function($) {
|
|
||||||
|
(function($) {
|
||||||
|
|
||||||
|
// prevent duplicate loading
|
||||||
|
// this is only a problem because we proxy existing functions
|
||||||
|
// and we don't want to double proxy them
|
||||||
|
$.ui = $.ui || {};
|
||||||
|
if ($.ui.version) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Helper functions and ui object
|
//Helper functions and ui object
|
||||||
$.ui = {
|
$.extend($.ui, {
|
||||||
version: "@VERSION",
|
version: "@VERSION",
|
||||||
|
|
||||||
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
||||||
@ -103,7 +112,7 @@ $.ui = {
|
|||||||
UP: 38,
|
UP: 38,
|
||||||
WINDOWS: 91 // COMMAND
|
WINDOWS: 91 // COMMAND
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
//jQuery plugins
|
//jQuery plugins
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
|
Loading…
Reference in New Issue
Block a user