Merge "Fix for warning in ForeignAPIFile when no thumbnails"
[lhc/web/wiklou.git] / resources / src / jquery / jquery.color.js
index 70dc105..894cf86 100644 (file)
@@ -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 );