Skip to content

Commit e455227

Browse files
committed
insert any to select and selectAll
1 parent 375cdfe commit e455227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function matches(selector, node) {
1414
}
1515

1616
function select(selector, node) {
17-
return any(parse(selector), node, {one: true})[0] || null
17+
return any(parse(selector), node, {one: true, any: any})[0] || null
1818
}
1919

2020
function selectAll(selector, node) {
21-
return any(parse(selector), node, {})
21+
return any(parse(selector), node, {any: any})
2222
}

0 commit comments

Comments
 (0)