From: Scott González Date: Fri, 20 Jul 2012 02:02:49 +0000 (-0400) Subject: Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+. X-Git-Tag: 1.8.22~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a24aa8d5638892ae83a3c06626030cfaa3f218a0;p=jquery-ui.git Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+. --- 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") )