Comparing version 3.0.0 to 3.1.0
@@ -15,3 +15,8 @@ /** | ||
var _flush = function() { | ||
for (var i = 0, length = _callbacks.length; i < length; i++) { | ||
/** | ||
* Important: do not cache the length of _callbacks | ||
* in the event a callback causes later subscriptions | ||
* to disappear | ||
*/ | ||
for (var i = 0; i < _callbacks.length; i++) { | ||
_callbacks[i]() | ||
@@ -18,0 +23,0 @@ } |
{ | ||
"name": "diode", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "A simple, eventually consistent, state propagation tool for Flux/React apps", | ||
@@ -37,3 +37,3 @@ "main": "diode.js", | ||
"karma-nyan-reporter": "0.0.50", | ||
"karma-sinon-chai": "^0.2.0", | ||
"karma-sinon-chai": "^0.3.0", | ||
"karma-webpack": "^1.5.0", | ||
@@ -40,0 +40,0 @@ "webpack": "^1.5.3", |
6063
70