oo-redux-utils
Advanced tools
Comparing version 1.23.12 to 1.23.13
@@ -26,2 +26,6 @@ "use strict"; | ||
function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -97,3 +101,3 @@ | ||
promise.then(function (result) { | ||
return _this4.dispatchAction_(new actionClass(_this4.stateNamespace, result, args)); | ||
return _this4.dispatchAction_(_construct(actionClass, [_this4.stateNamespace, result].concat(args))); | ||
}); | ||
@@ -103,3 +107,3 @@ } | ||
promise.then(function (result) { | ||
return _this4.dispatchAction_(new actionClass(result, args)); | ||
return _this4.dispatchAction_(_construct(actionClass, [result].concat(args))); | ||
}); | ||
@@ -106,0 +110,0 @@ } |
{ | ||
"name": "oo-redux-utils", | ||
"version": "1.23.12", | ||
"version": "1.23.13", | ||
"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
59715
405