mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Hygiene: Remove createRootReducer
Redux.combineReducers is equally self-documenting. Change-Id: I726fbc782fbb59aad0c8dd3c8eb168a302415e6c
This commit is contained in:
parent
c5675842a3
commit
a5e1cab732
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map
vendored
BIN
resources/dist/index.js.map
vendored
Binary file not shown.
11
src/index.js
11
src/index.js
|
@ -66,15 +66,6 @@ function registerChangeListeners( store, actions, schema, userSettings, settings
|
|||
registerChangeListener( store, changeListeners.settings( actions, settingsDialog ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the reducer for all actions.
|
||||
*
|
||||
* @return {Redux.Reducer}
|
||||
*/
|
||||
function createRootReducer() {
|
||||
return Redux.combineReducers( reducers );
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize the application by:
|
||||
* 1. Creating the state store
|
||||
|
@ -114,7 +105,7 @@ mw.requestIdleCallback( function () {
|
|||
}
|
||||
|
||||
store = Redux.createStore(
|
||||
createRootReducer(),
|
||||
Redux.combineReducers( reducers ),
|
||||
compose( Redux.applyMiddleware(
|
||||
ReduxThunk.default
|
||||
) )
|
||||
|
|
Loading…
Reference in a new issue