First editor integration.

This commit is contained in:
Paulo Veiga
2012-01-11 18:41:09 -03:00
parent d7817a6f2c
commit 8cf9e6d18e
5 changed files with 22 additions and 3 deletions

View File

@@ -137,6 +137,18 @@ mindplot.DesignerModel = new Class({
selectedTopic : function() {
var topics = this.filterSelectedTopics();
return (topics.length > 0) ? topics[0] : null;
}
},
findTopicById: function(id) {
var result = null;
for (var i = 0; i < this._topics.length; i++) {
var topic = this._topics[i];
if(topic.getId()==id){
result = topic;
break;
}
}
return result;
}
});