Skip to content

Commit

Permalink
Core: Better detection of when core is loaded twice. Fixes #5636 - Lo…
Browse files Browse the repository at this point in the history
…ad ui.position before ui.core couse ui.core not execute.
  • Loading branch information
scottgonzalez committed May 20, 2010
1 parent fc093e9 commit afaa035
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ui/jquery.ui.core.js
Expand Up @@ -7,10 +7,19 @@
*
* 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
$.ui = {
$.extend($.ui, {
version: "@VERSION",

// $.ui.plugin is deprecated. Use the proxy pattern instead.
Expand Down Expand Up @@ -103,7 +112,7 @@ $.ui = {
UP: 38,
WINDOWS: 91 // COMMAND
}
};
});

//jQuery plugins
$.fn.extend({
Expand Down

0 comments on commit afaa035

Please sign in to comment.