resourceloader: Minor clean up in mw.loader and mw.html
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 15 Sep 2018 17:45:50 +0000 (18:45 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 15 Sep 2018 17:45:50 +0000 (18:45 +0100)
commitd0a80f222e53bb669a5ec3a25955a4d9311445ec
treeb44907c3d25218210bf1aab4bca8c4ec5877a474
parent6762b34394c19bb0b35ce1e01980b570bf9942e5
resourceloader: Minor clean up in mw.loader and mw.html

* Remove redundant registry check in the internal
  queueModuleScript function. Like most internal methods,
  it can only be inside the mw.loader closure, and is only
  called with extant module name.

* Remove redundant registry check from execute().

* Rename local variable in mw.loader.state() from 'modules'
  to 'states' to avoid confusion.

* Shorten exception messages in mw.html to not prefix the method
  names, because we don't do that anywhere else in RL JS.

Change-Id: Idf1a49fd98445477f2d940624ca0d079325bd15b
resources/src/mediawiki.base/mediawiki.base.js
resources/src/startup/mediawiki.js