1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 09:41:11 +00:00

SelectorEngine: drop variable used once (#32391)

This commit is contained in:
XhmikosR 2020-12-09 15:05:52 +02:00 committed by GitHub
parent 77771cdf00
commit 41bc0e26d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,8 @@ const SelectorEngine = {
},
children(element, selector) {
const children = [].concat(...element.children)
return children.filter(child => child.matches(selector))
return [].concat(...element.children)
.filter(child => child.matches(selector))
},
parents(element, selector) {