From 81488fbfb6665802dc67dbeae985ff137dcc78f7 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 5 Feb 2018 22:44:00 +0100 Subject: [PATCH] Add `remove` listener to buttons in panels. Closes #824 --- src/panels/view/ButtonsView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/view/ButtonsView.js b/src/panels/view/ButtonsView.js index 6ca613fe6..97aaface6 100644 --- a/src/panels/view/ButtonsView.js +++ b/src/panels/view/ButtonsView.js @@ -8,7 +8,7 @@ module.exports = Backbone.View.extend({ this.pfx = this.config.stylePrefix || ''; this.parentM = this.opt.parentM || null; this.listenTo(this.collection, 'add', this.addTo); - this.listenTo(this.collection, 'reset', this.render); + this.listenTo(this.collection, 'reset remove', this.render); this.className = this.pfx + 'buttons'; },