This commit is contained in:
tamat
2016-01-26 19:41:50 +01:00
parent c71c55c948
commit 32c68febfb
3 changed files with 42 additions and 32 deletions

View File

@@ -697,7 +697,7 @@ LGraph.prototype.remove = function(node)
node.disconnectOutput(i);
}
node.id = -1;
//node.id = -1; //why?
//callback
if(node.onRemoved)
@@ -3282,11 +3282,9 @@ LGraphCanvas.prototype.processNodeDeselected = function(n)
delete this.selected_nodes[n.id];
if(this.onNodeDeselected)
this.onNodeDeselected();
this.onNodeDeselected(n);
this.dirty_canvas = true;
//this.showNodePanel(null);
}
LGraphCanvas.prototype.processNodeDblClicked = function(n)