mediawiki-extensions-Popups/resources/ext.popups/index.js
Sam Smith a9e78f06ae Add footer link change listener
Supporting changes:
* Add mw.popups.registerChangeListener, which registers a change
  listener that will only be called when the state in the store has
  changed.

Change-Id: Ibe6934058327c7f02f7d8092e74a667a5a1c600a
2016-11-16 15:20:34 +00:00

17 lines
398 B
JavaScript

( function ( mw ) {
mw.popups = {};
/**
* Unlike action creators and reducers, change listeners are more complex and
* won't be defined in just one file. Create the `mw.popups.changeListeners`
* namespace here to avoid repeating the following:
*
* ```js
* mw.popups.changeListeners = mw.popups.changeListeners || {};
* ```
*/
mw.popups.changeListeners = {};
}( mediaWiki ) );