From 263d4f36260193a084f3b9b4b353fb50bdf18a73 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 24 Aug 2016 10:55:31 +0200 Subject: [PATCH] client/paging: fix unbinding endless pager --- client/js/views/endless_page_view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/js/views/endless_page_view.js b/client/js/views/endless_page_view.js index 736fa5e5..27280474 100644 --- a/client/js/views/endless_page_view.js +++ b/client/js/views/endless_page_view.js @@ -36,6 +36,12 @@ class EndlessPageView { } }); this._probePageLoad(ctx); + + views.monitorNodeRemoval(this._pagesHolderNode, () => this._destroy()); + } + + _destroy() { + this._active = false; } _probePageLoad(ctx) {