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

sourceIndex on selector nodes #36

Closed
davidtheclark opened this issue Feb 28, 2016 · 2 comments
Closed

sourceIndex on selector nodes #36

davidtheclark opened this issue Feb 28, 2016 · 2 comments

Comments

@davidtheclark
Copy link
Contributor

I just noticed that sourceIndex is undefined on selector nodes. Seems like selectors nodes should get that data just like the other nodes.

A use-case is to get the index of one selector within a selector list: I might parse the selector list .foo .bar .baz, a b, then run selectorListNode.each(selectorNode => {..}) and within that function want to know selectorNode.sourceIndex.

Just a feature idea.

@ben-eb
Copy link
Member

ben-eb commented Feb 28, 2016

PR welcome. 👍

@chriseppstein
Copy link
Contributor

Added in 783e2ec. Thanks @davidtheclark

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

3 participants