mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 18:40:03 +00:00
SelectorEngine: drop variable used once (#32391)
This commit is contained in:
parent
77771cdf00
commit
41bc0e26d2
@ -23,9 +23,8 @@ const SelectorEngine = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
children(element, selector) {
|
children(element, selector) {
|
||||||
const children = [].concat(...element.children)
|
return [].concat(...element.children)
|
||||||
|
.filter(child => child.matches(selector))
|
||||||
return children.filter(child => child.matches(selector))
|
|
||||||
},
|
},
|
||||||
|
|
||||||
parents(element, selector) {
|
parents(element, selector) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user