Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created June 14, 2012 19:02
Show Gist options
  • Save mayhem/2932240 to your computer and use it in GitHub Desktop.
Save mayhem/2932240 to your computer and use it in GitHub Desktop.
models.Album.fromURI(album_uri, function(album)
{
console.log(album.tracks[0].uri + " " + album_uri);
track = models.Track.fromURI(album.tracks[0].uri);
playerView = new views.Player();
playlist = new models.Playlist();
playlist.add(track);
playerView.track = track;
playerView.context = playlist;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment