Commit c20aca36 authored by Akikonata's avatar Akikonata

test

parent 7eae9ddd
Subproject commit b8fb560558e1100936211e4823063eeae1ad1c83
Subproject commit 8b33f729a570f3501769d16ad4c329c0e7f4e08d
......@@ -22,10 +22,10 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
return this.getData( 'point' );
},
setType: function ( type ) {
this._type = type;
},
getType: function ( type ) {
return this._type;
},
setText: function ( text ) {
this.setData( 'text', text );
......
This diff is collapsed.
......@@ -96,8 +96,10 @@ KityMinder.registerModule( "LayoutModule", function () {
execute: function ( km, node ) {
var selectedNode = km.getSelectedNode();
if ( selectedNode.isRoot() ) {
node.setType( "main" );
km.appendChildNode( selectedNode, node );
} else {
node.setType( "sub" );
km.appendSiblingNode( selectedNode, node );
}
km.select( node, true );
......
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