Browse Source

Update ManipulationMixin.js

see https://github.com/almende/vis/issues/511
v3_develop
Felix Hayashi 10 years ago
parent
commit
710eababa4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/mixins/ManipulationMixin.js

+ 1
- 1
lib/network/mixins/ManipulationMixin.js View File

@ -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);

Loading…
Cancel
Save