Skip to content

Commit 16c0c8f

Browse files
committed
Prevent loading core files multiple times. Fixes #4130 - Too much recurson with double include.
1 parent 8ba4088 commit 16c0c8f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ui/effects.core.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
*
88
* http://docs.jquery.com/UI/Effects/
99
*/
10-
;(function($) {
10+
;jQuery.effects || (function($) {
1111

12-
$.effects = $.effects || {}; //Add the 'effects' scope
13-
14-
$.extend($.effects, {
12+
$.effects = {
1513
version: "@VERSION",
1614

1715
// Saves a set of properties in a data storage
@@ -130,7 +128,7 @@ $.extend($.effects, {
130128

131129
});
132130
}
133-
});
131+
};
134132

135133

136134
function _normalizeArguments(a, m) {

ui/ui.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* http://docs.jquery.com/UI
99
*/
10-
;(function($) {
10+
;jQuery.ui || (function($) {
1111

1212
var _remove = $.fn.remove,
1313
isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9);

0 commit comments

Comments
 (0)