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

Allow walker callback #15

Merged
merged 5 commits into from
Feb 16, 2016
Merged

Allow walker callback #15

merged 5 commits into from
Feb 16, 2016

Conversation

firsara
Copy link
Contributor

@firsara firsara commented Feb 14, 2016

allows manipulating child nodes before rendering.
Useful if nodes need to be processed in specific scenarios.

@rexxars
Copy link
Collaborator

rexxars commented Feb 15, 2016

Thanks for contributing!

I don't think the solution regarding the "double walking" is the right choice. The event has both an entering property and an isContainer property. With these two, users should be able to figure out for themselves if they want want to process the node on entering, leaving, or both.

So, if you could pass the event instead of just the node and remove the didWalk-logic, I'll merge this 👍

@firsara
Copy link
Contributor Author

firsara commented Feb 15, 2016

Oh didn't know about those properties, thanks for mentioning. I was just wondering about the double calls when I was implementing it.

Changed it, thank you! 👍

rexxars added a commit that referenced this pull request Feb 16, 2016
@rexxars rexxars merged commit f9f730e into remarkjs:master Feb 16, 2016
@rexxars
Copy link
Collaborator

rexxars commented Feb 16, 2016

Thanks again! I have a few more changes I want to get into master, then I'll push out a new release

@firsara
Copy link
Contributor Author

firsara commented Feb 16, 2016

Nice. Great module btw :)

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

Successfully merging this pull request may close these issues.

2 participants