mooremachine
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -102,2 +102,7 @@ // Copyright 2015 Joyent, Inc. | ||
this.fsm_state = state; | ||
this.fsm_history.push(state); | ||
if (this.fsm_history.length >= 8) | ||
this.fsm_history.shift(); | ||
f.call(this, this.sOn.bind(this), this.sOnce.bind(this), | ||
@@ -107,6 +112,2 @@ this.sTimeout.bind(this), this.sOnState.bind(this)); | ||
this.emit('stateChanged', state); | ||
this.fsm_history.push(state); | ||
if (this.fsm_history.length >= 8) | ||
this.fsm_history.shift(); | ||
}; | ||
@@ -113,0 +114,0 @@ |
{ | ||
"name": "mooremachine", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Moore finite state machines", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
6220