From 429974e5931fbf54ae7ff1d75832655e0c911aa7 Mon Sep 17 00:00:00 2001 From: josdejong Date: Wed, 19 Feb 2014 15:27:28 +0100 Subject: [PATCH] Using new DataSet API consistently --- src/graph/Graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph/Graph.js b/src/graph/Graph.js index 83aed2ba..daa8165b 100644 --- a/src/graph/Graph.js +++ b/src/graph/Graph.js @@ -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); }); }