Add debug info.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-17 14:38:34 -03:00
parent f44e616a4b
commit ed37b20dfc
2 changed files with 4 additions and 1 deletions

View File

@ -697,6 +697,9 @@ mindplot.Designer = new Class({
var targetTopicId = model.getToNode();
var targetTopic = dmodel.findTopicById(targetTopicId);
$assert(targetTopic, "targetTopic could not be found:" + targetTopicId + dmodel.getTopics().forEach(function (e) {
return e.getId()
}));
// Build relationship line ....
var result = new mindplot.Relationship(sourceTopic, targetTopic, model);

View File

@ -93,7 +93,7 @@ mindplot.model.RelationshipModel = new Class({
this._startArrow = startArrow;
},
clone:function (model) {
clone:function () {
var result = new mindplot.model.RelationshipModel(this._sourceTargetId, this._targetTopicId);
result._id = this._id;
result._lineType = this._lineType;