mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 03:34:03 +00:00
3d0899c0a0
The statsv change listener depended on both the analytics tracking function and whether it should log metrics to StatsD. We can simplify the behaviour of the change listener by passing in a function which doesn't log metrics to StatsD if such logging is disabled. The change listener is now more isolated from other components. Moreover, sharing the analytics tracking function with other components is simpler as there's no repeated code. Bug: T163198 Change-Id: Ibf4785fa4c27c1ad4739f02410f57412f56ff481 |
||
---|---|---|
.. | ||
index.js | ||
index.js.map |