Skip to content

Commit a24aa8d

Browse files
committed
Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+.
1 parent 9c1780f commit a24aa8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.effects.core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ function getColor(elem, attr) {
7575
var color;
7676

7777
do {
78-
color = $.curCSS(elem, attr);
78+
// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css
79+
color = ($.curCSS || $.css)(elem, attr);
7980

8081
// Keep going until we find an element that has color, or we hit the body
8182
if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") )

0 commit comments

Comments
 (0)