Browse Source

Small fix on ref usage in DataGroup (#3198)

gemini
wimrijnders 7 years ago
committed by yotamberk
parent
commit
d8458a90da
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      lib/graph3d/DataGroup.js

+ 2
- 3
lib/graph3d/DataGroup.js View File

@ -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);

Loading…
Cancel
Save