- Partially fix relationship to central topic.

- Fix add icon to the central topic
This commit is contained in:
Paulo Veiga
2011-11-30 00:50:46 -03:00
parent bc87d0f311
commit e520d9baba
4 changed files with 14 additions and 13 deletions

View File

@@ -95,11 +95,11 @@ mindplot.model.Mindmap = new Class({
return new mindplot.model.NodeModel(type, this, id);
},
createRelationship : function(fromNode, toNode) {
$assert(fromNode, 'from node cannot be null');
$assert(toNode, 'to node cannot be null');
createRelationship : function(sourceNodeId, targetNodeId) {
$assert($defined(sourceNodeId), 'from node cannot be null');
$assert($defined(targetNodeId), 'to node cannot be null');
return new mindplot.model.RelationshipModel(fromNode, toNode);
return new mindplot.model.RelationshipModel(sourceNodeId, targetNodeId);
},
addRelationship : function(relationship) {