Parcourir la source

Fixed #872: error about deprecated function `unsubscribe`

flowchartTest
jos il y a 10 ans
Parent
révision
03d0e258c6
3 fichiers modifiés avec 9 ajouts et 2 suppressions
  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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer