Skip to content

Commit

Permalink
* trigger fillSongBoxEvent instead of query db and
Browse files Browse the repository at this point in the history
  call fillSongBox manually
  • Loading branch information
JayGray committed Jul 29, 2014
1 parent 3635df2 commit 90f80d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/js/components/lib_keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
if (bindKeysToView[args.to]) {
bindKeysToView[args.to].call(this);
if (args.to === 'search' && dom.songBox.find('li').length === 0) {
var currentSongList = Audica.songDb.query().order('artist asec, album asec, year asec, track asec, title asec').get();
// TODO listen for event in seperate plugin
Audica.view.fillSongBox(currentSongList);
Audica.trigger('fillSongBox');
}
}
});
Expand Down

0 comments on commit 90f80d5

Please sign in to comment.