X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fsrc%2Fjquery%2Fjquery.color.js;h=894cf863e84feb4dd6eb1d85471303395f9d9b4a;hb=78aea614f0ca9d7ddcbc329e2cc67c838efd72cb;hp=70dc1057a6ffe87c5853c33884108bbf648fb270;hpb=41f1ce0d35b929d480ce87605a3234c187e44fd2;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.color.js b/resources/src/jquery/jquery.color.js index 70dc1057a6..894cf863e8 100644 --- a/resources/src/jquery/jquery.color.js +++ b/resources/src/jquery/jquery.color.js @@ -16,7 +16,7 @@ color = $.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' ) ) { + if ( color !== '' && color !== 'transparent' || elem.nodeName.toLowerCase() === 'body' ) { break; } @@ -28,7 +28,7 @@ } // We override the animation for all of these color styles - $.each( [ + [ 'backgroundColor', 'borderBottomColor', 'borderLeftColor', @@ -36,7 +36,7 @@ 'borderTopColor', 'color', 'outlineColor' - ], function ( i, attr ) { + ].forEach( function ( attr ) { $.fx.step[ attr ] = function ( fx ) { if ( !fx.colorInit ) { fx.start = getColor( fx.elem, attr );