Initialize mw.util.$content in mediawiki.util
[lhc/web/wiklou.git] / resources / src / mediawiki / page / startup.js
index cd37e33..9655fa4 100644 (file)
@@ -1,14 +1,9 @@
 ( function ( mw, $ ) {
 
-       // Support: MediaWiki < 1.26
-       // Cached HTML will not yet have this from OutputPage::getHeadScripts.
-       document.documentElement.className = document.documentElement.className
-               .replace( /(^|\s)client-nojs(\s|$)/, '$1client-js$2' );
-
        mw.page = {};
 
        $( function () {
-               mw.util.init();
+               var $diff;
 
                /**
                 * Fired when wiki content is being added to the DOM
@@ -28,7 +23,7 @@
                 */
                mw.hook( 'wikipage.content' ).fire( $( '#mw-content-text' ) );
 
-               var $diff = $( 'table.diff[data-mw="interface"]' );
+               $diff = $( 'table.diff[data-mw="interface"]' );
                if ( $diff.length ) {
                        /**
                         * Fired when the diff is added to a page containing a diff