Browse Source

Fixed a bug in DataView still using the deprecated `unsubscribe`

flowchartTest
jos 9 years ago
parent
commit
b3fe00837e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/DataView.js

+ 2
- 2
lib/DataView.js View File

@ -39,8 +39,8 @@ DataView.prototype.setData = function (data) {
if (this._data) {
// unsubscribe from current dataset
if (this._data.unsubscribe) {
this._data.unsubscribe('*', this.listener);
if (this._data.off) {
this._data.off('*', this.listener);
}
// trigger a remove of all items in memory

Loading…
Cancel
Save