Skip to content

Nodes as selectors#6

Open
brandondurham wants to merge 5 commits into
christinecha:masterfrom
hoeflerco:nodes-as-selectors
Open

Nodes as selectors#6
brandondurham wants to merge 5 commits into
christinecha:masterfrom
hoeflerco:nodes-as-selectors

Conversation

@brandondurham

Copy link
Copy Markdown

I was having trouble passing in a node as the selector (instead of a string for ID or Class). The final else in the if statement should have caught it but didn’t, so I added this.config.selector.nodeType > 0 as an initial check.

Let me know if you feel there might be a better way to pull this off!

— Brandon

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.

2 participants