mediawiki-extensions-Popups/resources
Stephen Niedzielski ece4670710 Hygiene: use arrow for anonymous functions
In some places, the arrow function seems more natural. This patch
approximates the following with manual amendments:

  find \
    -not \( \( -name node_modules -o -name .git -o -name vendor -o -name doc -o -name resources \) -prune \) \
    -iname \*.js|
  xargs -rd\\n sed -ri 's%function\s*(\([^)]*\))%\1 =>%g'

Files to focus on were identified with:

  rg -slg\!/resources/dist/ -g\!/i18n/ -g\!/doc/ 'this|self|arguments|bind|call|apply|new'|
  xargs -rd\\n git difftool -y

Bug: T165036
Change-Id: Ic66b6000b8fc000f9bfde39749f9cfa69924a13c
2018-03-20 09:27:08 -05:00
..
dist Hygiene: use arrow for anonymous functions 2018-03-20 09:27:08 -05:00
ext.popups Remove popups from critical rendering path 2018-03-13 08:44:31 -07:00
ext.popups.images Custom page preview for disambiguation pages 2018-03-14 11:24:26 -07:00
ext.popups.main Hygiene: replace Mustache templates w/ ES6 strings 2018-03-20 08:06:02 -05:00