Skip to content

Commit

Permalink
Rerender assets when the collection is resetted
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jul 5, 2017
1 parent a2dd78c commit 7632e08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/asset_manager/view/AssetsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ module.exports = Backbone.View.extend({
this.config = o.config;
this.pfx = this.config.stylePrefix || '';
this.ppfx = this.config.pStylePrefix || '';
this.listenTo( this.collection, 'add', this.addToAsset );
this.listenTo( this.collection, 'deselectAll', this.deselectAll );
this.listenTo(this.collection, 'add', this.addToAsset );
this.listenTo(this.collection, 'deselectAll', this.deselectAll);
this.listenTo(this.collection, 'reset', this.render);
this.className = this.pfx + 'assets';

this.events = {};
Expand Down

0 comments on commit 7632e08

Please sign in to comment.