Fix usage of the jQuery global in a few spots.
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 09:27:16 +0000 (09:27 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 09:27:16 +0000 (09:27 +0000)
commit7e8f5f1e8f6b0de969bb5da76c5879af5bd43b75
tree45c2137b1e5233c59952ef71c27804c440a9fff6
parent033b9cd5e2b465697bb5733acaddbe3db267a881
Fix usage of the jQuery global in a few spots.
- jQuery changed to $ in some files because there is a closure that creates a locally scoped $, but the jQuery var is globally scoped, meaning using jQuery instead of $ inside that closure could result in interacting with a different instance of jQuery than the uses of $ in that same closure.
- In mwExtension wrap the code inside a closure which it is missing. Also take this chance to fix the whitespace style `fn( arg )` instead of `fn(arg)` on the isArray I added.
This is partially a followup to r94331.

Note: The jquery plugins inside the jquery/ folder look fine for use of jQuery within closures, except for mockjax.
resources/jquery/jquery.makeCollapsible.js
resources/jquery/jquery.mwExtension.js
resources/mediawiki/mediawiki.js
resources/mediawiki/mediawiki.util.js