mw.config: Show deprecation notices when accessing globals
authorFomafix <fomafix@googlemail.com>
Sat, 24 May 2014 08:05:22 +0000 (08:05 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 5 Jan 2015 02:58:22 +0000 (02:58 +0000)
commit24f84b08cf91efd51cd95380e2eec155d24a2d03
tree5d564ab6dd049cf122ac38bf404e038025df8b87
parent4858e5878ab19a582304a05c6269bd09dba98b78
mw.config: Show deprecation notices when accessing globals

The mw.config.value object is no longer an alias to the global object
when $wgLegacyJavaScriptGlobals is true.

Instead, set() is made to copy to property to the global object. This
matches behaviour of other deprecated properties in that changes to the
deprecated property directly are ignored.

Bug: T58550
Change-Id: I703f7c12b59bc3207b2a291eacc393a8ae92df6f
resources/src/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js