reshow-flux-base
Advanced tools
Comparing version 0.15.6 to 0.15.7
@@ -23,3 +23,3 @@ "use strict"; | ||
add: function add(handler) { | ||
return pool.push(handler); | ||
return pool.unshift(handler); | ||
}, | ||
@@ -31,4 +31,6 @@ remove: function remove(handler) { | ||
return setTimeout(function () { | ||
for (var i = 0, j = pool.length; i < j; i++) { | ||
pool[i](state, action); | ||
var i = pool.length; | ||
while (i--) { | ||
pool[i] && pool[i](state, action); | ||
} | ||
@@ -35,0 +37,0 @@ }); |
@@ -12,3 +12,3 @@ import _toConsumableArray from "reshow-runtime/es/helpers/toConsumableArray"; | ||
add: function add(handler) { | ||
return pool.push(handler); | ||
return pool.unshift(handler); | ||
}, | ||
@@ -20,4 +20,6 @@ remove: function remove(handler) { | ||
return setTimeout(function () { | ||
for (var i = 0, j = pool.length; i < j; i++) { | ||
pool[i](state, action); | ||
var i = pool.length; | ||
while (i--) { | ||
pool[i] && pool[i](state, action); | ||
} | ||
@@ -24,0 +26,0 @@ }); |
{ | ||
"name": "reshow-flux-base", | ||
"version": "0.15.6", | ||
"version": "0.15.7", | ||
"description": "Pure flux dispatch mechanism", | ||
@@ -5,0 +5,0 @@ "main": "./build/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26723
846