src/basis/dom.js
function clone(node, noChildren){
    var result = node.cloneNode(!noChildren);
    if (result.attachEvent) // clear event handlers for IE
      axis(result, AXIS_DESCENDANT_OR_SELF).forEach(eventUtils.clearHandlers);
    return result;
  }
function clone(node, noChildren){
    var result = node.cloneNode(!noChildren);
    if (result.attachEvent) // clear event handlers for IE
      axis(result, AXIS_DESCENDANT_OR_SELF).forEach(eventUtils.clearHandlers);
    return result;
  }
function clone ( node , noChildren ) { var result = node . cloneNode ( ! noChildren ) ; if ( result . attachEvent ) // clear event handlers for IE axis ( result , AXIS_DESCENDANT_OR_SELF ) . forEach ( eventUtils . clearHandlers ) ; return result ; }
Clone node.
@param {Node} node
@param {boolean} noChildren If true than clone only node with no children.
@return {Node}
Clone node .