Commit 2df6de78 authored by zhangbobell's avatar zhangbobell

更正了节点 expand 的 queryState 的返回值

parent 49db4aef
......@@ -77,7 +77,8 @@ define(function(require, exports, module) {
},
queryState: function(km) {
return km.getSelectedNode() ? 0 : -1;
var node = km.getSelectedNode();
return node && !node.isRoot() && !node.isExpanded() ? 0 : -1;
}
});
......
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