From 710eababa48ef116646af7acaf3cf899191e07bd Mon Sep 17 00:00:00 2001 From: Felix Hayashi Date: Sat, 13 Dec 2014 00:20:54 +0100 Subject: [PATCH] Update ManipulationMixin.js see https://github.com/almende/vis/issues/511 --- lib/network/mixins/ManipulationMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network/mixins/ManipulationMixin.js b/lib/network/mixins/ManipulationMixin.js index 264b5166..ed405336 100644 --- a/lib/network/mixins/ManipulationMixin.js +++ b/lib/network/mixins/ManipulationMixin.js @@ -652,7 +652,7 @@ exports._deleteSelected = function() { if (this.triggerFunctions.del) { var me = this; var data = {nodes: selectedNodes, edges: selectedEdges}; - if (this.triggerFunctions.del.length = 2) { + if (this.triggerFunctions.del.length == 2) { this.triggerFunctions.del(data, function (finalizedData) { me.edgesData.remove(finalizedData.edges); me.nodesData.remove(finalizedData.nodes);