'use strict';
var elements = require('../elements');
var $ = require('../$');
/**
* Returns the element's parent node
*
* @name Element#parent
* @method
* @param {HTMLElement} element
* @return {HTMLElement}
*/
/**
* Returns the element's child[number] node
*
* @name Element#child
* @method
* @param {HTMLElement} element
* @return {HTMLElement}
*/
/**
* Returns the element's next sibling
*
* @name Element#next
* @method
* @param {HTMLElement} element
* @return {HTMLElement}
*/
/**
* Returns the element's previous sibling
*
* @name Element#previous
* @method
* @param {HTMLElement} element
* @return {HTMLElement}
*/
'parent next previous child'.split(' ').forEach( /** @function
* @param methodName */function (methodName) {
elements.addElementMethodWithoutArgumentsReturnElement(methodName);
});
elements.addElementMethodWithArgumentsReturnResult('find', /** @function
* @param element
* @param selectors */function (element, selectors) {
return $.find(selectors, element);
});
elements.addElementMethodWithArgumentsReturnResult('findFirst', /** @function
* @param element
* @param selectors */function (element, selectors) {
return $.first(selectors, element);
});
//# sourceMappingURL=dom_traversing.js.map |