Commit d2a737a2 authored by Akikonata's avatar Akikonata

fixed bug

parent bb8b03c0
......@@ -98,5 +98,5 @@ KityMinder.registerModule( "KeyboardModule", function () {
}
}
}
};
} );
\ No newline at end of file
......@@ -34,7 +34,7 @@ KityMinder.registerModule( "LayoutModule", function () {
},
removeNode: function ( nodes ) {
var curStyle = this.getCurrentStyle();
this.getLayoutStyle( curStyle ).appendChildNode.call( this, nodes );
this.getLayoutStyle( curStyle ).removeNode.call( this, nodes );
},
updateLayout: function ( node ) {
var curStyle = this.getCurrentStyle();
......@@ -110,6 +110,7 @@ KityMinder.registerModule( "LayoutModule", function () {
base: Command,
execute: function ( km ) {
var selectedNodes = km.getSelectedNodes();
console.log( selectedNodes );
km.removeNode( selectedNodes );
}
};
......
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