Fix several errors removing a node ...

This commit is contained in:
Paulo Gustavo Veiga
2012-07-07 11:52:23 -03:00
parent f3a13dfe7a
commit f3da916965
10 changed files with 616 additions and 557 deletions

View File

@@ -17,9 +17,15 @@
*/
mindplot.Relationship = new Class({
Extends:mindplot.ConnectionLine,
Static:{
getStrokeColor:function () {
return '#9b74e6';
},
type: "Relationship"
},
initialize:function (sourceNode, targetNode, model) {
$assert(sourceNode,"sourceNode can not be null");
$assert(targetNode,"targetNode can not be null");
$assert(sourceNode, "sourceNode can not be null");
$assert(targetNode, "targetNode can not be null");
this.parent(sourceNode, targetNode, model.getLineType());
this.setModel(model);
@@ -161,6 +167,8 @@ mindplot.Relationship = new Class({
this.parent(workspace);
this._positionArrows();
this.redraw();
},
_initializeControlPointController:function () {
@@ -306,13 +314,7 @@ mindplot.Relationship = new Class({
this._line2d.setIsDestControlPointCustom(isCustom);
},
getId: function(){
getId:function () {
return this._model.getId();
}
});
mindplot.Relationship.type = "Relationship";
mindplot.Relationship.getStrokeColor = function () {
return '#9b74e6';
};