Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+.

This commit is contained in:
Scott González 2012-07-19 22:02:49 -04:00
parent 9c1780f640
commit a24aa8d563

View File

@ -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") )