lib/Ext/data/NodeInterface.js
function(newId, deep) {
                    var me = this,
                        result = me.callOverridden(arguments),
                        len = me.childNodes ? me.childNodes.length : 0,
                        i;

                    // Move child nodes across to the copy if required
                    if (deep) {
                        for (i = 0; i < len; i++) {
                            result.appendChild(me.childNodes[i].copy(true));
                        }
                    }
                    return result;
                }
function(newId, deep) {
                    var me = this,
                        result = me.callOverridden(arguments),
                        len = me.childNodes ? me.childNodes.length : 0,
                        i;

                    // Move child nodes across to the copy if required
                    if (deep) {
                        for (i = 0; i < len; i++) {
                            result.appendChild(me.childNodes[i].copy(true));
                        }
                    }
                    return result;
                }
Creates a copy (clone) of this Node.
@param {String} [newId] A new id, defaults to this Node's id.
@param {Boolean} [deep] If passed as `true`, all child Nodes are recursively copied into the new Node.
If omitted or `false`, the copy will have no child Nodes.
@return {Ext.data.NodeInterface} A copy of this Node.