Here is the example of Undo/Redo : Undo_Redo_Delete
I did the following steps :
- Drag and Drop start and end nodes.
- Connect them via ports.
- Delete end node.
- Now again drag end node.
- This time I again try to connect start and end node , but it shows
TypeError: this.parent.getCanvas() is null
at this.parent.getCanvas().connectionLine.setGlow(false) of port.js.
If any body know how to overcome this problem then please help me.Thanks in advance:)
fixed with version 0.9.38
You can replace the onDragEnd method with the code below if you need a quick fix.