resourceloader: move track() from mediawiki.js to the base module
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 7 Jun 2018 06:23:07 +0000 (23:23 -0700)
committerKrinkle <krinklemail@gmail.com>
Thu, 14 Jun 2018 19:55:31 +0000 (19:55 +0000)
commitbbded40a2b26c0c7af9248db45551088b8c209ab
treec27a6a7a16eeda394ff465d65af17d0322ce5318
parent17bcab08d1079d962456fc020f68609dd575bdea
resourceloader: move track() from mediawiki.js to the base module

Handlers will not run until the base module is loaded. The track()
method in the loader is upgraded to fire the handlers once the base
module loads.

Refactor the exception logging bits to call logError more directly
instead of subscribing a logging handler to the event queue.

Bug: T192623
Change-Id: I2372bbf70a8775c7ce4c2c78c5edccf1195a9875
resources/src/mediawiki/mediawiki.base.js
resources/src/mediawiki/mediawiki.js