mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+.
This commit is contained in:
parent
9c1780f640
commit
a24aa8d563
3
ui/jquery.effects.core.js
vendored
3
ui/jquery.effects.core.js
vendored
@ -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") )
|
||||
|
Loading…
Reference in New Issue
Block a user