src/basis/dom.js
function clear(node){
    node = get(node);

    while (node[LAST_CHILD])
      node.removeChild(node[LAST_CHILD]);

    return node;
  }
function clear(node){
    node = get(node);

    while (node[LAST_CHILD])
      node.removeChild(node[LAST_CHILD]);

    return node;
  }
function clear ( node ) { node = get ( node ) ; while ( node [ LAST_CHILD ] ) node . removeChild ( node [ LAST_CHILD ] ) ; return node ; }
Removes all child nodes of node and returns this node.
@param {Node} node
@return {Node}
Removes all child nodes of node and returns this node .