Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a library-level variable for assigning ids #134

Merged
merged 1 commit into from Mar 10, 2015

Conversation

bollwyvl
Copy link
Contributor

The current behavior is unexpected when re-running init(), as every run through will start with the first .mermaid it finds, and start re-indexing at 0, irrespective if the original id=mermaidChart0 is still around.

This change ensures that successive runs will not clobber old ones.

I can add tests if desired.

The current behavior is unexpected when re-running `init()`, as every run through will start with the first `.mermaid` it finds, and start re-indexing at 0, irrespective if the original `id=mermaidChart0` is still around.

This change ensures that successive runs will not clobber old ones.
knsv added a commit that referenced this pull request Mar 10, 2015
Use a library-level variable for assigning ids
@knsv knsv merged commit 34ee8a0 into mermaid-js:master Mar 10, 2015
@knsv
Copy link
Collaborator

knsv commented Mar 10, 2015

Thanks! Will merge!

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

Successfully merging this pull request may close these issues.

None yet

2 participants