|
@ -652,7 +652,7 @@ exports._deleteSelected = function() { |
|
|
if (this.triggerFunctions.del) { |
|
|
if (this.triggerFunctions.del) { |
|
|
var me = this; |
|
|
var me = this; |
|
|
var data = {nodes: selectedNodes, edges: selectedEdges}; |
|
|
var data = {nodes: selectedNodes, edges: selectedEdges}; |
|
|
if (this.triggerFunctions.del.length = 2) { |
|
|
|
|
|
|
|
|
if (this.triggerFunctions.del.length == 2) { |
|
|
this.triggerFunctions.del(data, function (finalizedData) { |
|
|
this.triggerFunctions.del(data, function (finalizedData) { |
|
|
me.edgesData.remove(finalizedData.edges); |
|
|
me.edgesData.remove(finalizedData.edges); |
|
|
me.nodesData.remove(finalizedData.nodes); |
|
|
me.nodesData.remove(finalizedData.nodes); |
|
|