Commit a58ae81c authored by campaign's avatar campaign

展开收起命令不走undoredo

parent c62537a0
......@@ -11,6 +11,8 @@ KityMinder.registerModule( "Expand", function () {
_buffer.shift();
}
}
// var setOptionValue = function ( root, layer, sub ) {
// var cur_layer = 1;
// var _buffer = root.getChildren();
......@@ -131,10 +133,13 @@ KityMinder.registerModule( "Expand", function () {
},
queryState: function ( km ) {
return 0;
}
},
isNeedUndo: function () {
return false;
}
};
} )() );
var CollapseAllNodeCommand = kity.createClass( "ExpandAllNodeCommand", ( function () {
var CollapseAllNodeCommand = kity.createClass( "CollapseAllNodeCommand", ( function () {
return {
base: Command,
execute: function ( km ) {
......@@ -145,7 +150,10 @@ KityMinder.registerModule( "Expand", function () {
},
queryState: function ( km ) {
return 0;
}
},
isNeedUndo: function () {
return false;
}
};
} )() );
return {
......
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