- Fix Uncaught Icon can no be found., line:3940

main
Paulo Gustavo Veiga 2012-09-04 00:50:12 -03:00
parent 3f173ec2f1
commit 1efa24f2aa
1 changed files with 6 additions and 4 deletions

View File

@ -40,7 +40,9 @@ mindplot.commands.RemoveFeatureFromTopicCommand = new Class({
var topic = commandContext.findTopics(this._topicId)[0];
var feature = this._oldFeature;
topic.addFeature(feature.getType(), feature.getAttributes());
var newFeature = topic.addFeature(feature.getType(), feature.getAttributes());
this._featureId = newFeature.getModel().getId();
this._oldFeature = null;
}
});