mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-22 20:12:46 +00:00
a9e78f06ae
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
17 lines
398 B
JavaScript
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 ) );
|