]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: Fallback from $.curCSS to $.css to support jQuery 1.8+.
authorScott González <scott.gonzalez@gmail.com>
Fri, 20 Jul 2012 02:02:49 +0000 (22:02 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 20 Jul 2012 02:02:49 +0000 (22:02 -0400)
ui/jquery.effects.core.js

index 8ce867bd42ac98fd98dc4fb9fbfcf7c008b30df0..82bc4d8d3cd3be046094531c08b79e57c031f87a 100644 (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") )