reshow-flux-base
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -24,5 +24,5 @@ "use strict"; | ||
emit: function emit(t, state) { | ||
for (var a = all(t).slice(), i = 0, j = a.length; i < j; i++) { | ||
a[i](state); | ||
} | ||
return all(t).forEach(function (func) { | ||
return func(state); | ||
}); | ||
} | ||
@@ -29,0 +29,0 @@ }; |
@@ -61,3 +61,6 @@ "use strict"; | ||
while (_this.nextEmits.length) { | ||
_this.emit(_this.nextEmits.shift()); | ||
_this.emit(_this.nextEmits.shift(), { | ||
state: endingState, | ||
action: action | ||
}); | ||
} | ||
@@ -64,0 +67,0 @@ }; |
@@ -17,5 +17,5 @@ var type = function type(all) { | ||
emit: function emit(t, state) { | ||
for (var a = all(t).slice(), i = 0, j = a.length; i < j; i++) { | ||
a[i](state); | ||
} | ||
return all(t).forEach(function (func) { | ||
return func(state); | ||
}); | ||
} | ||
@@ -22,0 +22,0 @@ }; |
@@ -48,3 +48,6 @@ import _classCallCheck from "reshow-runtime/es/helpers/classCallCheck"; | ||
while (_this.nextEmits.length) { | ||
_this.emit(_this.nextEmits.shift()); | ||
_this.emit(_this.nextEmits.shift(), { | ||
state: endingState, | ||
action: action | ||
}); | ||
} | ||
@@ -51,0 +54,0 @@ }; |
{ | ||
"name": "reshow-flux-base", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"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
19496
569