Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

Reserved word 'stop' #37

Open
daniel-k opened this issue Feb 22, 2015 · 2 comments
Open

Reserved word 'stop' #37

daniel-k opened this issue Feb 22, 2015 · 2 comments

Comments

@daniel-k
Copy link

Hi,

I just started using jumly to visualize state machines and learned the "hard way" that I can't use "Stop" as a found, as this seems to be a reserved word.

Why is that? Is there a workaround besides renaming my state? I really would like not to check my dynamically created charts for reserved words.

To reproduce this, use http://jumly.tmtk.net/try.html

@found "Stop", ->
  @message "Think", ->
@tmtk75
Copy link
Owner

tmtk75 commented Mar 2, 2015

Thanks for your reporting issue.

Actually that's a limitation of current version due to its implementation.
9d215dd

It is fact that the error happens if function names defined in jQuery object are given like bind, get or stop.
There is one workaround to use " Stop" or "Stop " containing whitespace to avoid the error.

Sorry to bother you.

@togume
Copy link

togume commented Mar 18, 2015

@tmtk75 confirmed workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants