diff --git a/src/graph/Graph.js b/src/graph/Graph.js index 288aac05..6ebfed15 100644 --- a/src/graph/Graph.js +++ b/src/graph/Graph.js @@ -191,7 +191,6 @@ function Graph (container, data, options) { hover: false }; this.hoverObj = {nodes:{},edges:{}}; - this.editMode = this.constants.dataManipulation.initiallyVisible; // Node variables var graph = this; @@ -643,6 +642,7 @@ Graph.prototype.setOptions = function (options) { this.constants.dataManipulation[prop] = options.dataManipulation[prop]; } } + this.editMode = this.constants.dataManipulation.initiallyVisible; } else if (options.dataManipulation !== undefined) { this.constants.dataManipulation.enabled = false;