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

Fix DFS bug #877

Merged
merged 1 commit into from
Feb 3, 2016
Merged

Fix DFS bug #877

merged 1 commit into from
Feb 3, 2016

Conversation

zeitgeist87
Copy link
Collaborator

The DFS function uses an object as a key into another object. This
doesn't work, because the key gets stringified to "[object
Object]" and is therefore useless.

@Golmote
Copy link
Contributor

Golmote commented Feb 3, 2016

Looks like an quite efficient fix to me. You can start the id at 0 since you use pre-incrementation.
Thanks for reacting so quickly!

The DFS function uses an object as a key into another object. This
doesn't work, because the key gets stringified to "[object
Object]" and is therefore useless.
zeitgeist87 added a commit that referenced this pull request Feb 3, 2016
@zeitgeist87 zeitgeist87 merged commit 6c4cf55 into PrismJS:gh-pages Feb 3, 2016
@LeaVerou
Copy link
Member

LeaVerou commented Feb 5, 2016

Thanks from me too!

Hey, @Golmote, nice to see you again around here! 👋

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.

3 participants