Browse Source

Use get() to get data from DataSet/View instead of directly accessing member _data. (#3069)

gemini
wimrijnders 7 years ago
committed by yotamberk
parent
commit
168e79d299
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/modules/NodesHandler.js

+ 1
- 1
lib/network/modules/NodesHandler.js View File

@ -330,7 +330,7 @@ class NodesHandler {
if (nodes.hasOwnProperty(nodeId)) { if (nodes.hasOwnProperty(nodeId)) {
node = nodes[nodeId]; node = nodes[nodeId];
} }
let data = this.body.data.nodes._data[nodeId];
let data = this.body.data.nodes.get(nodeId);
if (node !== undefined && data !== undefined) { if (node !== undefined && data !== undefined) {
if (clearPositions === true) { if (clearPositions === true) {
node.setOptions({x:null, y:null}); node.setOptions({x:null, y:null});

Loading…
Cancel
Save