From d8458a90da0bfc68940e90c9dad396950e893687 Mon Sep 17 00:00:00 2001 From: wimrijnders Date: Thu, 22 Jun 2017 19:05:53 +0200 Subject: [PATCH] Small fix on ref usage in DataGroup (#3198) --- lib/graph3d/DataGroup.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/graph3d/DataGroup.js b/lib/graph3d/DataGroup.js index 8f2a615b..6b2093b6 100644 --- a/lib/graph3d/DataGroup.js +++ b/lib/graph3d/DataGroup.js @@ -36,8 +36,6 @@ function DataGroup() { * @param {Number} style Style Number */ DataGroup.prototype.initializeData = function(graph3d, rawData, style) { - var me = this; - // unsubscribe from the dataTable if (this.dataSet) { this.dataSet.off('*', this._onChange); @@ -65,8 +63,9 @@ DataGroup.prototype.initializeData = function(graph3d, rawData, style) { this.dataTable = data; // subscribe to changes in the dataset + var me = this; this._onChange = function () { - me.setData(me.dataSet); + graph3d.setData(me.dataSet); }; this.dataSet.on('*', this._onChange);