Minor refactoring

This commit is contained in:
An Phan 2016-05-30 14:36:50 +08:00
parent 9a302fd111
commit 07c1ae0f59

View file

@ -22,8 +22,10 @@ export default {
methods: { methods: {
open() {}, open() {},
/**
* Close all submenus.
*/
close() { close() {
// Close all submenus
$(this.$el).find('.submenu').hide(); $(this.$el).find('.submenu').hide();
this.shown = false; this.shown = false;
@ -54,7 +56,7 @@ export default {
}, },
/** /**
* Add the selected songs into Favorite. * Add the selected songs into Favorites.
*/ */
addSongsToFavorite() { addSongsToFavorite() {
favoriteStore.like(this.songs); favoriteStore.like(this.songs);