reshow-flux-base
Advanced tools
Comparing version 0.2.9 to 0.3.0
@@ -65,7 +65,14 @@ "use strict"; | ||
if (next.length) { | ||
setImmediate(function () { | ||
var nextRun = function nextRun() { | ||
return next.forEach(function (emit) { | ||
return _this.emit(emit); | ||
}); | ||
}); | ||
}; | ||
if (_this.nextAsync) { | ||
_this.nextAsync = false; | ||
setImmediate(nextRun); | ||
} else { | ||
nextRun(); | ||
} | ||
} | ||
@@ -91,2 +98,3 @@ }); | ||
this.nextEmits = []; | ||
this.nextAsync = false; | ||
return this.getInitialState(); | ||
@@ -93,0 +101,0 @@ } |
@@ -51,7 +51,14 @@ import _classCallCheck from "reshow-runtime/es/helpers/classCallCheck"; | ||
if (next.length) { | ||
setImmediate(function () { | ||
var nextRun = function nextRun() { | ||
return next.forEach(function (emit) { | ||
return _this.emit(emit); | ||
}); | ||
}); | ||
}; | ||
if (_this.nextAsync) { | ||
_this.nextAsync = false; | ||
setImmediate(nextRun); | ||
} else { | ||
nextRun(); | ||
} | ||
} | ||
@@ -81,2 +88,3 @@ }); | ||
this.nextEmits = []; | ||
this.nextAsync = false; | ||
return this.getInitialState(); | ||
@@ -83,0 +91,0 @@ } |
{ | ||
"name": "reshow-flux-base", | ||
"version": "0.2.9", | ||
"version": "0.3.0", | ||
"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
19699
575