Browse Source

Using new DataSet API consistently

css_transitions
josdejong 10 years ago
parent
commit
429974e593
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/graph/Graph.js

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

@ -1166,7 +1166,7 @@ Graph.prototype._setNodes = function(nodes) {
if (oldNodesData) {
// unsubscribe from old dataset
util.forEach(this.nodesListeners, function (callback, event) {
oldNodesData.unsubscribe(event, callback);
oldNodesData.off(event, callback);
});
}
@ -1292,7 +1292,7 @@ Graph.prototype._setEdges = function(edges) {
if (oldEdgesData) {
// unsubscribe from old dataset
util.forEach(this.edgesListeners, function (callback, event) {
oldEdgesData.unsubscribe(event, callback);
oldEdgesData.off(event, callback);
});
}

Loading…
Cancel
Save