diff options
author | Mark Otto <otto@github.com> | 2019-07-24 09:13:50 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-07-24 09:13:50 +0300 |
commit | 114a0ee193ffe7869c8369f25ef4dcc44929fbf5 (patch) | |
tree | 15e6e79c2f1b06eff34de7fba10bab2ec5dd0070 /js/dist/dom/selector-engine.js | |
parent | e101ba4989c1930206ac2a092246612bab105f8e (diff) |
Rebuild the dist to pickup new utilities file (#29105)
Dist after adding new utils file
Diffstat (limited to 'js/dist/dom/selector-engine.js')
-rw-r--r-- | js/dist/dom/selector-engine.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/js/dist/dom/selector-engine.js b/js/dist/dom/selector-engine.js index afcd49e30a..6a956b6d97 100644 --- a/js/dist/dom/selector-engine.js +++ b/js/dist/dom/selector-engine.js @@ -48,10 +48,6 @@ element = document.documentElement; } - if (typeof selector !== 'string') { - return null; - } - return polyfill_js.find.call(element, selector); }, findOne: function findOne(selector, element) { @@ -59,29 +55,17 @@ element = document.documentElement; } - if (typeof selector !== 'string') { - return null; - } - return polyfill_js.findOne.call(element, selector); }, children: function children(element, selector) { var _this = this; - if (typeof selector !== 'string') { - return null; - } - var children = makeArray(element.children); return children.filter(function (child) { return _this.matches(child, selector); }); }, parents: function parents(element, selector) { - if (typeof selector !== 'string') { - return null; - } - var parents = []; var ancestor = element.parentNode; @@ -96,17 +80,9 @@ return parents; }, closest: function closest(element, selector) { - if (typeof selector !== 'string') { - return null; - } - return polyfill_js.closest.call(element, selector); }, prev: function prev(element, selector) { - if (typeof selector !== 'string') { - return null; - } - var siblings = []; var previous = element.previousSibling; |