mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
SelectorEngine: drop variable used once (#32391)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user