Skip to content

Commit

Permalink
Prep v7.2.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesmo committed Jan 2, 2019
1 parent 871a3ba commit 03c0f72
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/lib/state.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/node/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var initialA = new node_1.PseudoState("initialA", regionA, node_1.PseudoStateKin
var waitingA = new node_1.State("waitingA", regionA);
var completeA = new node_1.State("completeA", regionA).entry(function () { return console.info("Received event A"); });
initialA.to(waitingA);
waitingA.on(Event)["if"](function (event) { return event.is("A"); }).to(completeA);
waitingA.on(Event).when(function (event) { return event.is("A"); }).to(completeA);
// create a child region which becomes complete once it has received event B.
var regionB = new node_1.Region("regionB", waiting);
var initialB = new node_1.PseudoState("initialB", regionB, node_1.PseudoStateKind.Initial);
Expand Down
1 change: 0 additions & 1 deletion lib/node/runtime/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ model.State.prototype.enterHead = function (instance, deepHistory, trigger, next
// when entering a state indirectly (part of the target ancestry in a transition that crosses region boundaries), ensure all child regions are entered
if (nextElement) {
// enter all child regions except for the next in the ancestry
// for (const region of this.children) {
for (var i = this.children.length; i--;) {
if (this.children[i] !== nextElement) {
this.children[i].enter(instance, deepHistory, trigger);
Expand Down
2 changes: 1 addition & 1 deletion lib/web/state.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steelbreeze/state",
"version": "7.2.6",
"version": "7.2.7",
"description": "Finite state machine for TypeScript and JavaScript",
"main": "lib/node/index.js",
"typings": "lib/node/index.d.ts",
Expand Down

0 comments on commit 03c0f72

Please sign in to comment.