Bug 1368100 - Remove the messageAdd action;r=bgrins.
MozReview-Commit-ID: AC0YH88q8d9
--- a/devtools/client/webconsole/new-console-output/store.js
+++ b/devtools/client/webconsole/new-console-output/store.js
@@ -11,17 +11,17 @@ const {
compose,
createStore
} = require("devtools/client/shared/vendor/redux");
const { thunk } = require("devtools/client/shared/redux/middleware/thunk");
const {
BATCH_ACTIONS
} = require("devtools/client/shared/redux/middleware/debounce");
const {
- MESSAGE_ADD,
+ MESSAGES_ADD,
MESSAGE_OPEN,
MESSAGES_CLEAR,
REMOVED_ACTORS_CLEAR,
NETWORK_MESSAGE_UPDATE,
PREFS,
} = require("devtools/client/webconsole/new-console-output/constants");
const { reducers } = require("./reducers/index");
const Services = require("Services");
@@ -124,17 +124,17 @@ function enableBatching() {
*/
function enableActorReleaser(hud) {
return next => (reducer, initialState, enhancer) => {
function releaseActorsEnhancer(state, action) {
state = reducer(state, action);
let type = action.type;
let proxy = hud ? hud.proxy : null;
- if (proxy && (type == MESSAGE_ADD || type == MESSAGES_CLEAR)) {
+ if (proxy && (type == MESSAGES_ADD || type == MESSAGES_CLEAR)) {
releaseActors(getMutableRemovedActors(state), proxy);
// Reset `removedActors` in message reducer.
state = reducer(state, {
type: REMOVED_ACTORS_CLEAR
});
}