Fixing minor issues with mw.loader
authorKrinkle <krinkle@users.mediawiki.org>
Thu, 10 Mar 2011 18:49:14 +0000 (18:49 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Thu, 10 Mar 2011 18:49:14 +0000 (18:49 +0000)
commita5e37774683104ffa00dcb66859f5b38ffe7ab4f
treec45b29637d9bbdff51b4916984e471928c7d483b
parent1fdfc7a37fd825f963497887886ee52a175271f4
Fixing minor issues with mw.loader
* Using $.isArray/isFunction instead of "instanceof" or typeof.
** "instanceof Array" can throw SyntaxErrors in some cases
** Some non-functions return 'function' as their type
* JSHint:
** using === to compare to null (faster and safer)
** Missing semicolons
** Mixed spaces with tabs
* Added mw.log call when module is loaded
* Added support for custom prefix to mw.log (the mw.config value for 'mw.log.prefix' is pretty ugly as it sets it globally, when calling a function later again it's no longer the same. Perhaps just get rid of it)
resources/mediawiki/mediawiki.js
resources/mediawiki/mediawiki.log.js