mediawiki-extensions-Echo/modules
Timo Tijhof 99ce7178c0 ext.echo.dm: Remove unreachable lazy-creation code
This boilerplate at the beginning of most files is an anti-pattern from
very early 2011 frontend experiments (I take full blame), where I didn't
understand (or had confidence in) the load order of scripts. I won't
remove it all at once, as that requires careful review of dependencies.

But this one file seemed like low-hanging fruit. The "ext.echo.dm"
contained a file that lazy-created `mw.echo` as empty as empty object,
and `mw.echo.config` as `{ maxPrioritizedActions: 2 }`.

The "ext.echo.init" module loaded on every page already does the same.
Remove this file and depend on that module instead. The same modules
will be downloaded, in the same way, and in the same order as before.

What changes is that the order of execution is now defined instead of
implied, thus making the dm-version of it redundant.

In practice, while fragile, the load order was already consistently
running init before dm. I found this through code coverage analysis in
Chrome DevTools, <https://phabricator.wikimedia.org/F28421786>.

Change-Id: Iaed7cf0e47479ce8ce76aee1bfe479d82b4f61ed
2019-03-19 20:16:37 +00:00
..
api Update eslint-config-wikimedia to 0.9.0 2018-11-27 22:48:32 +00:00
controller build: Update eslint-config-wikimedia to 0.10.1 2019-02-06 01:42:53 +00:00
icons Update icons with overhauled user avatar 2018-10-09 23:24:31 -07:00
logger Remove obsolete aliases from closures 2018-11-12 13:56:38 +00:00
model Update eslint-config-wikimedia to 0.9.0 2018-11-27 22:48:32 +00:00
nojs Apply unseen notifications colours to all skins by default 2019-02-20 15:04:35 +00:00
special build: Update eslint-config-wikimedia to 0.10.1 2019-02-06 01:42:53 +00:00
styles build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass 2019-01-09 18:42:06 -08:00
ui SpecialHelpMenuWidget: Remove button handle hack 2019-02-07 14:41:55 +00:00
echo.mixins.less build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass 2019-01-09 18:42:06 -08:00
echo.variables.less Better color to represent read notifications 2017-12-09 02:11:08 +01:00
ext.echo.init.js build: Update eslint-config-wikimedia to 0.10.1 2019-02-06 01:42:53 +00:00
ext.echo.moment-hack.js Remove obsolete aliases from closures 2018-11-12 13:56:38 +00:00
hooks.txt (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.js ext.echo.dm: Remove unreachable lazy-creation code 2019-03-19 20:16:37 +00:00