worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
19
node_modules/dom-helpers/cjs/siblings.js
generated
vendored
Normal file
19
node_modules/dom-helpers/cjs/siblings.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = siblings;
|
||||
|
||||
var _collectSiblings = _interopRequireDefault(require("./collectSiblings"));
|
||||
|
||||
/**
|
||||
* Collects all previous and next sibling elements of a given element.
|
||||
*
|
||||
* @param node the element
|
||||
*/
|
||||
function siblings(node) {
|
||||
return (0, _collectSiblings.default)(node && node.parentElement ? node.parentElement.firstElementChild : null, node);
|
||||
}
|
||||
|
||||
module.exports = exports["default"];
|
||||
Loading…
Add table
Add a link
Reference in a new issue