resourceloader: Remove redundant type-checks in internal code
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 28 Aug 2015 23:12:07 +0000 (01:12 +0200)
committerOri.livneh <ori@wikimedia.org>
Tue, 1 Sep 2015 16:33:15 +0000 (16:33 +0000)
commit158f4cd6cceaf06b6cbd5845337840f24fdd0f7f
treee3594a6729bc1a33c0adaaf762e45e35a99e127a
parentb244fc8ad2be137d7dc4ce4dfb50082bc52bb8b4
resourceloader: Remove redundant type-checks in internal code

The private 'execute()' method only runs for modules that have been
implemented by mw.loader.implement, which already throws if 'messages'
or 'style' is set to a non-object value.

The execute() code for 'templates' already has this check removed.

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