mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
15 lines
254 B
JavaScript
15 lines
254 B
JavaScript
var QueueSong = can.Model.extend({
|
|
|
|
findAll: 'GET /api/queue'
|
|
|
|
}, {});
|
|
|
|
QueueSong.List = can.List.extend({
|
|
|
|
updatePlaying: function(oldVal, newVal) {
|
|
this.attr(oldVal).attr('playing', false);
|
|
this.attr(newVal).attr('playing', true);
|
|
}
|
|
|
|
});
|