Comparing version 1.0.6 to 1.0.7
@@ -27,5 +27,3 @@ "use strict"; | ||
_this.listeners = _this.listeners.concat([listener]); | ||
return function () { | ||
return (_this.listeners = _this.listeners.filter(function (lis) { return lis !== listener; })); | ||
}; | ||
return function () { return (_this.listeners = _this.listeners.filter(function (lis) { return lis !== listener; })); }; | ||
}; | ||
@@ -32,0 +30,0 @@ this.addMiddleware = function () { |
@@ -7,5 +7,3 @@ "use strict"; | ||
var result = reducer(state); | ||
return typeof result === 'function' | ||
? result(store.dispatch, store.getState, extraArgument) | ||
: reducer; | ||
return typeof result === 'function' ? result(store.dispatch, store.getState, extraArgument) : reducer; | ||
}); | ||
@@ -12,0 +10,0 @@ thunk.withExtraArgument = thunkFactory; |
{ | ||
"name": "repatch", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Dispatch reducers", | ||
@@ -5,0 +5,0 @@ "main": "lib/store/index", |
@@ -27,5 +27,7 @@ # <a href="https://www.npmjs.com/package/repatch"><img alt="Repatch" src="http://jaystack.com/wp-content/uploads/2017/08/repatch-logo.png" height="50px"></a> | ||
``` | ||
npm install repatch | ||
npm install --save repatch | ||
``` | ||
## [API Reference](https://github.com/jaystack/repatch/blob/master/docs/index.md) | ||
## Examples | ||
@@ -32,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19621
15
204
129