mediawiki.special.recentchanges: Use module.exports instead of mw.special
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 26 May 2016 17:35:28 +0000 (18:35 +0100)
committerJforrester <jforrester@wikimedia.org>
Thu, 26 May 2016 17:45:39 +0000 (17:45 +0000)
commit02339039605990cc015edccdc261cd62a6d4eeca
treecdb5c2c8c233a6231b1867b3b25ae9f62f6b2ea7
parent6843a4c844d823096f093ac6aa66492aed1e5d40
mediawiki.special.recentchanges: Use module.exports instead of mw.special

This isn't generally used as a public method. The only reason it's exposed is
for an integration test to access it.

This commit and others prepare for removal of the 'mediawiki.special.js' file.
This script does nothing other than create "mw.special = {};". While that init
pattern is common in extensions and not wrong, 'mediawiki.special' violates
T92459 due to having styles. Given there's only script uses of it, it's easiest
to remove it in favour of the new module export pattern.

Change-Id: I2e78828828601e1160550efe02c07172ac32e985
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.recentchanges.js
tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js