TheDJ has submitted this change and it was merged.

Change subject: mediawiki.page.startup: Code cleanup
......................................................................


mediawiki.page.startup: Code cleanup

* Whitespace fix
* Explicitly use $( document ).ready instead of $ for grepping

Change-Id: I5f63bcbade559cec34534ecef939661d0518ba3f
---
M resources/mediawiki.page/mediawiki.page.startup.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, but someone else must approve
  TheDJ: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/mediawiki.page/mediawiki.page.startup.js 
b/resources/mediawiki.page/mediawiki.page.startup.js
index 6a11d3e..029039d 100644
--- a/resources/mediawiki.page/mediawiki.page.startup.js
+++ b/resources/mediawiki.page/mediawiki.page.startup.js
@@ -5,7 +5,7 @@
        // Client profile classes for <html>
        // Allows for easy hiding/showing of JS or no-JS-specific UI elements
        $( 'html' )
-               .addClass('client-js' )
+               .addClass( 'client-js' )
                .removeClass( 'client-nojs' );
 
        // Initialize utilities as soon as the document is ready 
(mw.util.$content,
@@ -13,6 +13,6 @@
        // 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 );
+       $( document ).ready( mw.util.init );
 
 }( mediaWiki, jQuery ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/71608
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5f63bcbade559cec34534ecef939661d0518ba3f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matmarex <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to