Fix missing migrated event...

This commit is contained in:
Paulo Veiga
2011-08-05 01:34:51 -03:00
parent 36e44c13ca
commit b15ff84a94
7 changed files with 39 additions and 27 deletions

View File

@@ -220,6 +220,18 @@ mindplot.LocalActionDispatcher = new Class({
this.execute(command);
},
shrinkBranch : function(topicsIds, collapse) {
$assert(topicsIds, "topicsIds can not be null");
var commandFunc = function(topic, isShrink) {
topic.setChildrenShrinked(isShrink);
return !isShrink;
};
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, topicsIds, collapse);
this.execute(command);
},
execute:function(command) {
this._actionRunner.execute(command);
}