mw.loader: Prevent useless jobs from being added to queue
authorMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 2 Mar 2013 05:03:19 +0000 (00:03 -0500)
committerKrinkle <ttijhof@wikimedia.org>
Sat, 2 Mar 2013 19:15:26 +0000 (19:15 +0000)
commit62308668c3445853e4d87b898d90becd15b2af7b
tree1c567aeab60b2a50497e012dedb54c1c056bff8d
parent68820277aff9409f54494eb35c4cb005d3cd98aa
mw.loader: Prevent useless jobs from being added to queue

* load was calling request with ready and error being null.
* request was doing a strict check against undefined to prevent adding
  jobs with no callbacks to the queue.
* Since these were null rather than undefined, the empty jobs got added
  anyway.  Now using undefined instead.
* Mark ready and error as optional in the request JS documentation.

Change-Id: I6428e733899f7c484f842f6fe142c8d4d49ee443
resources/mediawiki/mediawiki.js