Commit 341a9aaa authored by campaign's avatar campaign

修改了clone方法

parent 1b82f700
......@@ -191,6 +191,9 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
function cloneNode(parent,isClonedNode){
var _tmp = new KM.MinderNode(isClonedNode.getData());
_tmp.parent = parent;
if(parent){
parent.children.push(_tmp);
}
for(var i= 0,ci;ci=isClonedNode.children[i++];){
cloneNode(_tmp,ci);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment