From a24aa8d5638892ae83a3c06626030cfaa3f218a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 19 Jul 2012 22:02:49 -0400 Subject: [PATCH] Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+. --- ui/jquery.effects.core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 8ce867bd4..82bc4d8d3 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -75,7 +75,8 @@ function getColor(elem, attr) { var color; do { - color = $.curCSS(elem, attr); + // jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css + color = ($.curCSS || $.css)(elem, attr); // Keep going until we find an element that has color, or we hit the body if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") )