aboutsummaryrefslogtreecommitdiff
path: root/js/src/dom/selectorEngine.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-02-26 13:20:34 +0200
committerXhmikosR <[email protected]>2019-03-11 17:01:28 +0200
commit46c037410b8c7eaab3cf50a5cf44093aa2fd41f4 (patch)
treecb8c857562c4d3f819a5a8fcc563bc8f2c126e4e /js/src/dom/selectorEngine.js
parent44e6abcba50309df4fae56a9c7ef79145b64a356 (diff)
downloadbootstrap-46c037410b8c7eaab3cf50a5cf44093aa2fd41f4.tar.xz
bootstrap-46c037410b8c7eaab3cf50a5cf44093aa2fd41f4.zip
Comply to the new rules.
Diffstat (limited to 'js/src/dom/selectorEngine.js')
-rw-r--r--js/src/dom/selectorEngine.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/dom/selectorEngine.js b/js/src/dom/selectorEngine.js
index 151bb54c7..f674319d1 100644
--- a/js/src/dom/selectorEngine.js
+++ b/js/src/dom/selectorEngine.js
@@ -16,8 +16,7 @@ import {
* ------------------------------------------------------------------------
*/
-const findFn = Polyfill.find
-const findOne = Polyfill.findOne
+const { find: findFn, findOne } = Polyfill
const NODE_TEXT = 3
const SelectorEngine = {
@@ -48,7 +47,7 @@ const SelectorEngine = {
const children = makeArray(element.children)
- return children.filter((child) => this.matches(child, selector))
+ return children.filter(child => this.matches(child, selector))
},
parents(element, selector) {