Browse Source

fixed #858

flowchartTest
Alex de Mulder 9 years ago
parent
commit
c2b07f0201
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/timeline/component/ItemSet.js
  2. +1
    -1
      lib/timeline/component/LineGraph.js

+ 1
- 1
lib/timeline/component/ItemSet.js View File

@ -708,7 +708,7 @@ ItemSet.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

+ 1
- 1
lib/timeline/component/LineGraph.js View File

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

Loading…
Cancel
Save