Fix several issues.

This commit is contained in:
Paulo Veiga 2011-09-09 22:03:31 -03:00
parent d84384364c
commit 09237a13b5

View File

@ -77,8 +77,13 @@ mindplot.collaboration.framework.brix.model.Mindmap = new Class({
$assert(nodeModel.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE, "central topic can not be removed");
var branches = this._brixModel.get("branches");
var brixModel = nodeModel.getBrixModel();
branches.remove(brixModel);
for (var i = 0; i < branches.size(); i++) {
if (branches.get(i) == nodeModel.getBrixModel()) {
branches.remove(i);
break;
}
}
},
createNode : function(type, id) {