Merge "Fix documentation for Revision::getComment and WikiPage::getComment"
[lhc/web/wiklou.git] / resources / src / jquery / jquery.color.js
index 847afd4..6df02ad 100644 (file)
@@ -7,7 +7,7 @@
  *
  * - 2011-01-05: Forked for MediaWiki. See also jQuery.colorUtil plugin
  */
-( function ( $ ) {
+( function () {
 
        function getColor( elem, attr ) {
                var color;
@@ -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 );
@@ -52,4 +52,4 @@
                };
        } );
 
-}( jQuery ) );
+}() );