We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc093e9 commit afaa035Copy full SHA for afaa035
ui/jquery.ui.core.js
@@ -7,10 +7,19 @@
7
*
8
* http://docs.jquery.com/UI
9
*/
10
-;jQuery.ui || (function($) {
+
11
+(function($) {
12
13
+// prevent duplicate loading
14
+// this is only a problem because we proxy existing functions
15
+// and we don't want to double proxy them
16
+$.ui = $.ui || {};
17
+if ($.ui.version) {
18
+ return;
19
+}
20
21
//Helper functions and ui object
-$.ui = {
22
+$.extend($.ui, {
23
version: "@VERSION",
24
25
// $.ui.plugin is deprecated. Use the proxy pattern instead.
@@ -103,7 +112,7 @@ $.ui = {
103
112
UP: 38,
104
113
WINDOWS: 91 // COMMAND
105
114
}
106
-};
115
+});
107
116
108
117
//jQuery plugins
109
118
$.fn.extend({
0 commit comments