mw.loader: Simplify getVersion and getState
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 21 Sep 2017 23:10:45 +0000 (00:10 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 21 Sep 2017 23:10:45 +0000 (00:10 +0100)
commit6c2621fefc744f36c84275a46f55c3ed70bb9baf
treed9e4d6faf4f04f4323516ea1e5cb195ff368413e
parent9afde45c26d4ba07d10b7a07063613b4e28c4a77
mw.loader: Simplify getVersion and getState

This undefined check no longer makes sense since there are now
defaults for these in register(). There is no supported scenario
in which a module would have a key in the registry but not
have these properties defined, or have them defined with
the undefined value.

Change-Id: I945871861ccf3659c2d7dd021aa87dfd747f22b9
resources/src/mediawiki/mediawiki.js