Merge "Fix order on Special:Contributions when timestamps are identical"
[lhc/web/wiklou.git] / resources / src / mediawiki.widgets.datetime / DateTimeFormatter.js
index 038af95..e8c1b9b 100644 (file)
@@ -1,5 +1,4 @@
-/* eslint-disable no-restricted-properties */
-( function ( $, mw ) {
+( function () {
 
        /**
         * Provides various methods needed for formatting dates and times.
                                                        parseValue: this.parseSpecValue
                                                };
                                                spec.size = Math.max.apply(
+                                                       // eslint-disable-next-line jquery/no-map-util
                                                        null, $.map( spec.values, function ( v ) { return v.length; } )
                                                );
                                                return spec;
                        }
                }
 
+               // eslint-disable-next-line no-restricted-properties
                if ( v.normalize ) {
+                       // eslint-disable-next-line no-restricted-properties
                        v = v.normalize();
                }
                re = new RegExp( '^\\s*' + v.replace( /([\\{}()|.?*+\-^$\[\]])/g, '\\$1' ), 'i' ); // eslint-disable-line no-useless-escape
                };
        };
 
-}( jQuery, mediaWiki ) );
+}() );