* .jshintrc - Update properties to reflect our conventions more * Re-pass resources/jquery/* * Pass resources/mediawiki/* - Trailing whitespace - Whitelist the one usage of document.write with a local /*jshint evil:true */ in the function that we allow to use it. - Get rid of dangling _ in var names and undescriptive instances of '_this'. - More code conventions * Add a few documentation comments while at it Change-Id: Ic4f2b5d473a440667a40e4d5f12f40877386b02f
18 lines
655 B
JavaScript
18 lines
655 B
JavaScript
( function ( mw, $ ) {
|
|
|
|
mw.page = {};
|
|
|
|
// Client profile classes for <html>
|
|
// Allows for easy hiding/showing of JS or no-JS-specific UI elements
|
|
$( 'html' )
|
|
.addClass('client-js' )
|
|
.removeClass( 'client-nojs' );
|
|
|
|
// Initialize utilities as soon as the document is ready (mw.util.$content,
|
|
// messageBoxNew, profile, tooltip access keys, Table of contents toggle, ..).
|
|
// Enqueued into domready from here instead of mediawiki.page.ready to ensure that it gets enqueued
|
|
// before other modules hook into document ready, so that mw.util.$content (defined by mw.util.init),
|
|
// is defined for them.
|
|
$( mw.util.init );
|
|
|
|
}( mediaWiki, jQuery ) );
|