mediawiki.special.changeslist.legend.js: Remove wait for document ready
authorFomafix <fomafix@googlemail.com>
Fri, 1 Sep 2017 21:39:30 +0000 (23:39 +0200)
committerFomafix <fomafix@googlemail.com>
Fri, 1 Sep 2017 21:56:14 +0000 (23:56 +0200)
mw.hook( 'wikipage.content' ) gets fired after document ready.

Change-Id: Ia1536e734f8ae08cc7cc07c3b1854bdaafb54866

resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js

index a991d36..0792762 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 /* Remember the collapse state of the legend on recent changes and watchlist pages. */
-( function ( mw, $ ) {
+( function ( mw ) {
        var
                cookieName = 'changeslist-state',
                // Expanded by default
@@ -20,7 +20,5 @@
                                } );
                };
 
-       $( function () {
-               mw.hook( 'wikipage.content' ).add( doCollapsibleLegend );
-       } );
-}( mediaWiki, jQuery ) );
+       mw.hook( 'wikipage.content' ).add( doCollapsibleLegend );
+}( mediaWiki ) );