worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
24
node_modules/dom-helpers/esm/collectSiblings.js
generated
vendored
Normal file
24
node_modules/dom-helpers/esm/collectSiblings.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import matches from './matches';
|
||||
export default function collectSiblings(node, refNode, selector) {
|
||||
if (refNode === void 0) {
|
||||
refNode = null;
|
||||
}
|
||||
|
||||
if (selector === void 0) {
|
||||
selector = null;
|
||||
}
|
||||
|
||||
var siblings = [];
|
||||
|
||||
for (; node; node = node.nextElementSibling) {
|
||||
if (node !== refNode) {
|
||||
if (selector && matches(node, selector)) {
|
||||
break;
|
||||
}
|
||||
|
||||
siblings.push(node);
|
||||
}
|
||||
}
|
||||
|
||||
return siblings;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue