- Fix feature issue on redo.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-27 23:28:24 -03:00
parent 22d9f7a199
commit e5ab234d01
3 changed files with 28 additions and 23 deletions

View File

@@ -47,7 +47,9 @@ mindplot.model.NodeModel = new Class({
removeFeature:function (feature) {
$assert(feature, 'feature can not be null');
this._feature.erase(feature);
this._feature = this._feature.filter(function (f) {
return feature.getId() != f.getId();
});
},
findFeatureByType:function (type) {