Skip to content

Commit

Permalink
actually maybe it's a legit flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Jul 3, 2017
1 parent 64821cd commit 5f18f74
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -3,8 +3,5 @@ node_js:
- "8"
- "7"
- "6"
before_install:
- npm install -g flow-bin
- flow --version
after_success:
- npm run travis
6 changes: 3 additions & 3 deletions dist/jssm.es5.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/lib/index.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset='utf-8' />
<title>jssm 2.9.0 | Documentation</title>
<title>jssm 2.9.1 | Documentation</title>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' type='text/css' rel='stylesheet' />
<link href='assets/style.css' type='text/css' rel='stylesheet' />
Expand All @@ -14,7 +14,7 @@
<div class='fixed xs-hide fix-3 overflow-auto max-height-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>jssm</h3>
<div class='mb1'><code>2.9.0</code></div>
<div class='mb1'><code>2.9.1</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "2.9.0",
"version": "2.9.1",
"engines": {
"node": ">=6.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/js/jssm.js
Expand Up @@ -303,14 +303,14 @@ class machine<mNT, mDT> {
.map( filtered => filtered.from );
}
*/
list_exit_actions(whichState : mNT = this.state() ) : Array<mNT> {
list_exit_actions(whichState : mNT = this.state() ) : Array<any> { // these are mNT
return [... (this._reverse_actions.get(whichState) || new Map()).values()] // wasteful, should throw instead
.map ( (edgeId:number) => this._edges[edgeId] )
.filter ( (o:JssmTransition<mNT, mDT>) => o.from === whichState )
.map ( filtered => filtered.action );
}

probable_action_exits(whichState : mNT = this.state() ) : Array<mNT> {
probable_action_exits(whichState : mNT = this.state() ) : Array<any> { // these are mNT
return [... (this._reverse_actions.get(whichState) || new Map()).values()] // wasteful, should throw instead
.map ( (edgeId:number) => this._edges[edgeId] )
.filter ( (o:JssmTransition<mNT, mDT>) => o.from === whichState )
Expand Down

0 comments on commit 5f18f74

Please sign in to comment.