From 16c0c8f2594234ad970fc22112d4752c3f1e467e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 13 Feb 2009 02:25:21 +0000 Subject: [PATCH] Prevent loading core files multiple times. Fixes #4130 - Too much recurson with double include. --- ui/effects.core.js | 8 +++----- ui/ui.core.js | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ui/effects.core.js b/ui/effects.core.js index 080339a11..eb448e71e 100644 --- a/ui/effects.core.js +++ b/ui/effects.core.js @@ -7,11 +7,9 @@ * * http://docs.jquery.com/UI/Effects/ */ -;(function($) { +;jQuery.effects || (function($) { -$.effects = $.effects || {}; //Add the 'effects' scope - -$.extend($.effects, { +$.effects = { version: "@VERSION", // Saves a set of properties in a data storage @@ -130,7 +128,7 @@ $.extend($.effects, { }); } -}); +}; function _normalizeArguments(a, m) { diff --git a/ui/ui.core.js b/ui/ui.core.js index beee725bc..b8ea359c8 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -7,7 +7,7 @@ * * http://docs.jquery.com/UI */ -;(function($) { +;jQuery.ui || (function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9); -- 2.39.5