From b3fe00837e62e63b8f575d6f9bb3730d181fe1ae Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 22 May 2015 10:10:17 +0200 Subject: [PATCH] Fixed a bug in DataView still using the deprecated `unsubscribe` --- lib/DataView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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