- Features are not created inside topic. This helps on revert action.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-28 23:14:37 -03:00
parent dbf8b0e28c
commit dfe07e2da0
9 changed files with 36 additions and 29 deletions

View File

@@ -41,14 +41,14 @@ mindplot.TopicFeature = {
});
},
createModel:function (type, attributes, id) {
createModel:function (type, attributes) {
$assert(type, 'type can not be null');
$assert(attributes, 'attributes can not be null');
var model = mindplot.TopicFeature._featuresMetadataById.filter(function (elem) {
return elem.id == type;
})[0].model;
return new model(attributes, id);
return new model(attributes);
},
createIcon:function (topic, model, readOnly) {