Browse Source

Merge pull request #157 from theGrue/initiallyVisible

Fixing usage of dataManipulation.initiallyVisible option.
v3_develop
Alex 10 years ago
parent
commit
7a5d6f300b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/graph/Graph.js

+ 1
- 1
src/graph/Graph.js View File

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

Loading…
Cancel
Save