]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed the initialization of color animations for cases where the first step of the...
authorScott González <scott.gonzalez@gmail.com>
Sun, 20 Sep 2009 21:07:38 +0000 (21:07 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sun, 20 Sep 2009 21:07:38 +0000 (21:07 +0000)
ui/jquery.effects.core.js

index 2f1d12bd3716c3408baa086ee9778b4ac8fee82b..700190e6711f8963238f75c8c8f2d03da1461aac 100644 (file)
@@ -336,9 +336,10 @@ $.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor',
        'borderRightColor', 'borderTopColor', 'color', 'outlineColor'],
 function(i, attr) {
        $.fx.step[attr] = function(fx) {
-               if (fx.state === 0) {
+               if (!fx.colorInit) {
                        fx.start = getColor(fx.elem, attr);
                        fx.end = getRGB(fx.end);
+                       fx.colorInit = true;
                }
 
                fx.elem.style[attr] = 'rgb(' +