diff --git a/lib/DataView.js b/lib/DataView.js index 158a20e3..39da84ab 100644 --- a/lib/DataView.js +++ b/lib/DataView.js @@ -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