OutputPage: Guard jQuery.ready() against absence of jQuery
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 14 May 2013 20:58:18 +0000 (22:58 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 14 May 2013 21:09:57 +0000 (23:09 +0200)
commit1bd0d43f7fb6c61140caf9ecae3d059a3b8bfdd4
treeff7f5a8d86e6c52fae24f13bd1dc46a17c6d9add
parentfd0ff7a312126ca68e2ce4a11418d7854395f46a
OutputPage: Guard jQuery.ready() against absence of jQuery

We already wrap usage of global "mediaWiki" in a condition
for window.mw (see method
ResourceLoader::makeLoaderConditionalScript) because:
1) The startup module blacklists certain
   browsers in which we won't load jquery+mediawiki.
2) It might have failed to load (for whatever reason).

Adding guard for window.jQuery for the same reasons.

Follows-up Ic3d0c937268d09, which caused a TypeError
'ready of undefined not a function' in browsers where
jquery+mediawiki isn't loaded by the startup module.

Change-Id: I9dcd8d347c6b00efe207d031a480e5b85bf78936
includes/OutputPage.php