diff --git a/editor.js b/editor.js index 03add8b..9f5af62 100644 --- a/editor.js +++ b/editor.js @@ -502,6 +502,7 @@ function openContextMenu(x, y, menu) { menu.style.top = y - 25; menu.style.left = x + 20; menu.style.display = 'block'; + edgeFrom = edgeTo = null; } var newStateCoords = {'x': 0, 'y': 0}; //Initial coordinates of the next new state