|
@ -36,8 +36,6 @@ function DataGroup() { |
|
|
* @param {Number} style Style Number |
|
|
* @param {Number} style Style Number |
|
|
*/ |
|
|
*/ |
|
|
DataGroup.prototype.initializeData = function(graph3d, rawData, style) { |
|
|
DataGroup.prototype.initializeData = function(graph3d, rawData, style) { |
|
|
var me = this; |
|
|
|
|
|
|
|
|
|
|
|
// unsubscribe from the dataTable
|
|
|
// unsubscribe from the dataTable
|
|
|
if (this.dataSet) { |
|
|
if (this.dataSet) { |
|
|
this.dataSet.off('*', this._onChange); |
|
|
this.dataSet.off('*', this._onChange); |
|
@ -65,8 +63,9 @@ DataGroup.prototype.initializeData = function(graph3d, rawData, style) { |
|
|
this.dataTable = data; |
|
|
this.dataTable = data; |
|
|
|
|
|
|
|
|
// subscribe to changes in the dataset
|
|
|
// subscribe to changes in the dataset
|
|
|
|
|
|
var me = this; |
|
|
this._onChange = function () { |
|
|
this._onChange = function () { |
|
|
me.setData(me.dataSet); |
|
|
|
|
|
|
|
|
graph3d.setData(me.dataSet); |
|
|
}; |
|
|
}; |
|
|
this.dataSet.on('*', this._onChange); |
|
|
this.dataSet.on('*', this._onChange); |
|
|
|
|
|
|
|
|