src/basis/dom.js
function(filter, result){
      var node;

      if (!result)
        result = [];

      this.reset();

      while (node = this.next(filter))
        result.push(node);

      return result;
    }
function(filter, result){
      var node;

      if (!result)
        result = [];

      this.reset();

      while (node = this.next(filter))
        result.push(node);

      return result;
    }
function ( filter , result ) { var node ; if ( ! result ) result = [ ] ; this . reset ( ) ; while ( node = this . next ( filter ) ) result . push ( node ) ; return result ; }
Returns all nodes.
@param {function(object):boolean} filter Override internal filter
@return {Node|object}
Returns all nodes .