Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -274,9 +274,10 @@ |
275 | 275 | |
276 | 276 | /** |
277 | 277 | * Checks wether the current page is the wiki's main page. |
| 278 | + * This function requires the document to be ready! |
278 | 279 | * |
279 | 280 | * @param alsoRelated Boolean value, if true this function also returns true if the current page is |
280 | | - * in a different namespace page of the main page rather than the main page itself (eg. talk page) |
| 281 | + * in an associated namespace page of the main page rather than the main page itself (eg. talk page) |
281 | 282 | * @return Boolean |
282 | 283 | */ |
283 | 284 | 'isMainPage' : function( alsoRelated ) { |