src/basis/dom.js
function replace(oldNode, newNode){
    return oldNode[PARENT_NODE] ? oldNode[PARENT_NODE].replaceChild(newNode, oldNode) : oldNode;
  }
function replace(oldNode, newNode){
    return oldNode[PARENT_NODE] ? oldNode[PARENT_NODE].replaceChild(newNode, oldNode) : oldNode;
  }
function replace ( oldNode , newNode ) { return oldNode [ PARENT_NODE ] ? oldNode [ PARENT_NODE ] . replaceChild ( newNode , oldNode ) : oldNode ; }
Replace oldNode for newNode and returns oldNode.
@param {Node} oldNode
@param {Node} newNode
@return {Node}
Replace oldNode for newNode and returns oldNode .