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

Stop walking on a specific node children #22

Open
yehiasalam opened this issue Apr 20, 2015 · 1 comment
Open

Stop walking on a specific node children #22

yehiasalam opened this issue Apr 20, 2015 · 1 comment

Comments

@yehiasalam
Copy link

Hello,

Is there a way while walking/traversing to stop going further on this specific nodeand move on to the next sibling and mainly the rest of the traversal. I can see the walk method have the option to return false to stop the traversal all together, but what if i just want to keep going but stop traversing this specific node any further?

Thanks, love the library, using it extensively here http://codepen.io/yehiasalam/pen/LVPadv

@joaonuno
Copy link
Owner

Hi,

Unfortunately no, I've been wanting to add this feature for quite some time but I'm not sure how to do it in the post-order traversal so I've postponed it. Returning false from walk was an API mistake. I should have used a control object with functions to control traversal. Will think about it further but don't expect a quick fix for now. I'm leaving this issue open to remind me I should solve this.

Nice simulation you got there btw!

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

No branches or pull requests

2 participants