Skip to content

Commit

Permalink
fix deletion function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Pozdnyakov authored and Ivan Pozdnyakov committed Nov 30, 2015
1 parent bf1f077 commit 63c1eb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions VQI_PathwayEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,10 @@ var VQI_PathwayEditor = function(parent) {

function removeElements(event) {
saveState();
selectedForEditNodes.remove();
selectedForEditEdges.remove();
if(selectedForEditNodes.length > 0)
selectedForEditNodes.remove();
if(selectedForEditEdges.length > 0)
selectedForEditEdges.remove();
}

function addNode(event) {
Expand Down

0 comments on commit 63c1eb9

Please sign in to comment.