diff options
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; |