Commit fefd5329 authored by Akikonata's avatar Akikonata

Merge branch 'dev' of https://github.com/kitygraph/kityminder into dev

parents 7122ab68 b0fa6fb7
......@@ -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