Skip to content

Commit 973005c

Browse files
wimrijndersPrimoz Susa
authored andcommitted
Small fix on ref usage in DataGroup (visjs#3198)
1 parent c7e4a58 commit 973005c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/graph3d/DataGroup.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ function DataGroup() {
3636
* @param {Number} style Style Number
3737
*/
3838
DataGroup.prototype.initializeData = function(graph3d, rawData, style) {
39-
var me = this;
40-
4139
// unsubscribe from the dataTable
4240
if (this.dataSet) {
4341
this.dataSet.off('*', this._onChange);
@@ -65,8 +63,9 @@ DataGroup.prototype.initializeData = function(graph3d, rawData, style) {
6563
this.dataTable = data;
6664

6765
// subscribe to changes in the dataset
66+
var me = this;
6867
this._onChange = function () {
69-
me.setData(me.dataSet);
68+
graph3d.setData(me.dataSet);
7069
};
7170
this.dataSet.on('*', this._onChange);
7271

0 commit comments

Comments
 (0)