mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
Rebuild the dist to pickup new utilities file (#29105)
Dist after adding new utils file
This commit is contained in:
24
js/dist/dom/selector-engine.js
vendored
24
js/dist/dom/selector-engine.js
vendored
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user