Download:
child 6:7cb2c97ca45c
parent 4:0f4fd1d78a9a
5:6d60e6ca73f4
Anton Shestakov <av6@dwimlabs.net>, Tue, 11 Oct 2016 13:25:59 +0800
index: set window title on track change

1 файлов изменено, 4 вставок(+), 0 удалений(-) [+]
index.html file | annotate | diff | comparison | revisions
--- a/index.html Tue Oct 11 13:25:44 2016 +0800
+++ b/index.html Tue Oct 11 13:25:59 2016 +0800
@@ -117,6 +117,10 @@
$(function() {
var player = window.player = new Player();
+ player.on('change:track', function() {
+ $('title').text(player.get('track').get('song'));
+ });
+
var front = window.front = new FrontView({
el: '[data-front]',
model: player