oo-redux-utils
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -57,2 +57,11 @@ "use strict"; | ||
}, { | ||
key: "dispatchActions", | ||
value: function dispatchActions(actions) { | ||
var _this = this; | ||
actions.forEach(function (action) { | ||
return _this.dispatchAction(action); | ||
}); | ||
} | ||
}, { | ||
key: "dispatchActionToComponentType", | ||
@@ -59,0 +68,0 @@ value: function dispatchActionToComponentType(action, componentType) { |
@@ -8,2 +8,4 @@ "use strict"; | ||
var React = _interopRequireWildcard(require("react")); | ||
var _AbstractAction = _interopRequireDefault(require("./AbstractAction")); | ||
@@ -13,2 +15,6 @@ | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -27,3 +33,3 @@ | ||
_createClass(DispatchUtils, [{ | ||
_createClass(DispatchUtils, null, [{ | ||
key: "createActionDispatcher", | ||
@@ -39,4 +45,4 @@ value: function createActionDispatcher(dispatch) { | ||
key: "createActionDispatcherToComponentType", | ||
value: function createActionDispatcherToComponentType(dispatch, componentType) { | ||
return function (action) { | ||
value: function createActionDispatcherToComponentType(dispatch) { | ||
return function (action, componentType) { | ||
dispatch({ | ||
@@ -43,0 +49,0 @@ type: action, |
{ | ||
"name": "oo-redux-utils", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Utility functions for Object-oriented Redux", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39933
254