Browse Source

Fixed #872: error about deprecated function `unsubscribe`

flowchartTest
jos 9 years ago
parent
commit
03d0e258c6
3 changed files with 9 additions and 2 deletions
  1. +7
    -0
      HISTORY.md
  2. +1
    -1
      lib/timeline/component/ItemSet.js
  3. +1
    -1
      lib/timeline/component/LineGraph.js

+ 7
- 0
HISTORY.md View File

@ -2,6 +2,13 @@
http://visjs.org
## not yet released, version 4.0.1-SNAPSHOT
### Timeline, Graph2d
- Fixed #872: error about deprecated function `unsubscribe`.
## 2015-05-22, version 4.0.0
### General

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

@ -708,7 +708,7 @@ ItemSet.prototype.setGroups = function(groups) {
// unsubscribe from current dataset
if (this.groupsData) {
util.forEach(this.groupListeners, function (callback, event) {
me.groupsData.unsubscribe(event, callback);
me.groupsData.off(event, callback);
});
// 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
if (this.groupsData) {
util.forEach(this.groupListeners, function (callback, event) {
me.groupsData.unsubscribe(event, callback);
me.groupsData.off(event, callback);
});
// remove all drawn groups

Loading…
Cancel
Save