Browse Source

Add `remove` listener to buttons in panels. Closes #824

pull/856/head
Artur Arseniev 8 years ago
parent
commit
81488fbfb6
  1. 2
      src/panels/view/ButtonsView.js

2
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';
},

Loading…
Cancel
Save