wixplosives/tokey

css selector walk wrong index when filtering ast types

Closed this issue · 0 comments

walk(parseCssSelector(`.a:hover.b`), (node, index) => {
   // first call:   node=a, index=0
   // second call:  node=b, index=1 <-- should be 2
}, { visitList: [`class`]});

without visitList/ignoreList index is fine