diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-07-19 22:02:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-07-19 22:02:49 -0400 |
commit | a24aa8d5638892ae83a3c06626030cfaa3f218a0 (patch) | |
tree | 0f0df06f582923464888f411ea39d7a503e9f11f | |
parent | 9c1780f640e2c9cbcbca1182989ae511408c04e9 (diff) | |
download | jquery-ui-a24aa8d5638892ae83a3c06626030cfaa3f218a0.tar.gz jquery-ui-a24aa8d5638892ae83a3c06626030cfaa3f218a0.zip |
Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+.
-rw-r--r-- | ui/jquery.effects.core.js | 3 |
1 files changed, 2 insertions, 1 deletions
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") ) |