More responsive like/unlike

This commit is contained in:
An Phan 2015-12-21 21:05:25 +08:00
parent 3e747101a9
commit 7c4745fe4a

View file

@ -208,9 +208,10 @@
return;
}
favoriteStore.toggleOne(this.song, () => {
this.liked = this.song.liked;
});
// Mark the song as liked/unliked right away, for a more responsive feel.
this.liked = !this.liked;
favoriteStore.toggleOne(this.song);
},
/**