Code coverage report for lib/prototypes/dom_traversing.js

Statements: 75% (6 / 8)      Branches: 100% (0 / 0)      Functions: 33.33% (1 / 3)      Lines: 75% (6 / 8)      Ignored: none     

All files » lib/prototypes/ » dom_traversing.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58    1 1                                                                           1   4     1           1          
'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