Permalink
Browse files

Log stuff

  • Loading branch information...
1 parent 3cf67f9 commit 395cb41103e9738a9e43ec8326c0beaefdc26cb4 @floreskul committed Apr 26, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 index.html
View
@@ -43,21 +43,20 @@
var query = getQueryByYears(startYear, endYear);
// console.log(query);
// var query = "year:" + startYear + "-" + endYear;
+ console.log(startYear + '-' + endYear)
console.log(query);
var search = new models.Search(query);
currentPlaylist = new models.Playlist();
- console.log(search.tracks);
search.observe(models.EVENT.CHANGE, function() {
if(search.tracks.length) {
// copy tracks to current playlist
$.each(search.tracks, function(index, track){
currentPlaylist.add(models.Track.fromURI(track.uri));
});
- console.log(currentPlaylist);
+ // console.log(currentPlaylist);
// player.context = currentPlaylist;
// player.track = currentPlaylist.get(0);
player.play(currentPlaylist.get(0), currentPlaylist, 0);
- console.log(query);
}
});
search.appendNext();

0 comments on commit 395cb41

Please sign in to comment.