redux-zero
Advanced tools
Comparing version 4.0.0 to 4.0.1
# Changelog | ||
### 4.0.1 | ||
- Fixed bug where unsubscribing a listener made listeners ahead be also removed. | ||
### 4.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -42,3 +42,3 @@ 'use strict'; | ||
return function () { | ||
listeners.splice(listeners.indexOf(f)); | ||
listeners.splice(listeners.indexOf(f), 1); | ||
}; | ||
@@ -45,0 +45,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t["redux-zero"]=e()}(this,function(){"use strict";var t=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};return function(e){void 0===e&&(e={});var n=[];return{setState:function(o){e="function"==typeof o?t({},e,o(e)):t({},e,o),n.forEach(function(t){return t(e)})},subscribe:function(t){return n.push(t),function(){n.splice(n.indexOf(t))}},getState:function(){return e}}}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t["redux-zero"]=e()}(this,function(){"use strict";var t=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};return function(e){void 0===e&&(e={});var n=[];return{setState:function(o){e="function"==typeof o?t({},e,o(e)):t({},e,o),n.forEach(function(t){return t(e)})},subscribe:function(t){return n.push(t),function(){n.splice(n.indexOf(t),1)}},getState:function(){return e}}}}); | ||
//# sourceMappingURL=redux-zero.min.js.map |
{ | ||
"name": "redux-zero", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "", | ||
@@ -84,2 +84,2 @@ "main": "dist/redux-zero.js", | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31602
0