4 router.transitionTo('show', event.context) 5 6 skipSong: (router, event) -> 7 song = event.context 8 Buds.Radio.SkipLogger.create({ song: song }).log() 9 router.send('nextSong', event) 10 11 nextSong: (router, event) -> 12 currentSong = event.context 13 nextSong = App.playlist.nextSong(currentSong) 14 15 if nextSong instanceof Buds.Radio.NoMoreSongsError 16 router.send('fetchMoreCards', callback:-> 17 router.send('nextSong', event) 18 ) 19 else 20 router.transitionTo('show', nextSong) 21 The Router • Actions Thursday, 13 December 12