*
* - 2011-01-05: Forked for MediaWiki. See also jQuery.colorUtil plugin
*/
-( function ( $ ) {
+( function () {
function getColor( elem, attr ) {
var color;
}
// We override the animation for all of these color styles
- $.each( [
+ [
'backgroundColor',
'borderBottomColor',
'borderLeftColor',
'borderTopColor',
'color',
'outlineColor'
- ], function ( i, attr ) {
+ ].forEach( function ( attr ) {
$.fx.step[ attr ] = function ( fx ) {
if ( !fx.colorInit ) {
fx.start = getColor( fx.elem, attr );
};
} );
-}( jQuery ) );
+}() );