mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 23:44:54 +01:00
Add debug info.
This commit is contained in:
parent
f44e616a4b
commit
ed37b20dfc
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user