|
@ -324,7 +324,7 @@ LineGraph.prototype.setGroups = function(groups) { |
|
|
// unsubscribe from current dataset
|
|
|
// unsubscribe from current dataset
|
|
|
if (this.groupsData) { |
|
|
if (this.groupsData) { |
|
|
util.forEach(this.groupListeners, function (callback, event) { |
|
|
util.forEach(this.groupListeners, function (callback, event) { |
|
|
me.groupsData.unsubscribe(event, callback); |
|
|
|
|
|
|
|
|
me.groupsData.off(event, callback); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// remove all drawn groups
|
|
|
// remove all drawn groups
|
|
|