mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-29 09:04:54 +01:00
Fix several issues.
This commit is contained in:
parent
d84384364c
commit
09237a13b5
@ -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");
|
$assert(nodeModel.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE, "central topic can not be removed");
|
||||||
|
|
||||||
var branches = this._brixModel.get("branches");
|
var branches = this._brixModel.get("branches");
|
||||||
var brixModel = nodeModel.getBrixModel();
|
for (var i = 0; i < branches.size(); i++) {
|
||||||
branches.remove(brixModel);
|
if (branches.get(i) == nodeModel.getBrixModel()) {
|
||||||
|
branches.remove(i);
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
createNode : function(type, id) {
|
createNode : function(type, id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user