From 78e2ec1ed470e1ef97be9c85378a4efd29a9fa93 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Mon, 14 Mar 2011 18:11:19 +0000 Subject: [PATCH] Follow-up r82310 CR: Adding comment about document ready (since it uses jQuery and interacts with DOM elements) --- resources/mediawiki.util/mediawiki.util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/mediawiki.util/mediawiki.util.js b/resources/mediawiki.util/mediawiki.util.js index 17d3eb2ae6..16e2aed196 100644 --- a/resources/mediawiki.util/mediawiki.util.js +++ b/resources/mediawiki.util/mediawiki.util.js @@ -274,9 +274,10 @@ /** * Checks wether the current page is the wiki's main page. + * This function requires the document to be ready! * * @param alsoRelated Boolean value, if true this function also returns true if the current page is - * in a different namespace page of the main page rather than the main page itself (eg. talk page) + * in an associated namespace page of the main page rather than the main page itself (eg. talk page) * @return Boolean */ 'isMainPage' : function( alsoRelated ) { -- 2.20.1