rem: .then(function(curTracklist) { 
add: libFast.map(arrayPlaylists, function(curPlaylist) { if (!('index' in curPlaylist)) { return; }  var curPlaylistIndex = curPlaylist.index;  promisedActions = promisedActions .then(function() { return self.sendSpopCommand('ls', [curPlaylistIndex]); }) .then(JSON.parse) .then(function(curTracklist) { 
context: 		.then(function(curTracklist) {			var nTracks = 0;			if (!('tracks' in curTracklist)) {				return;			}			nTracks = curTracklist.tracks.length;			for (var j = 0; j < nTracks; j++) {				self.tracklist.push({					'service': 'spop',					'uri': curTracklist.tracks[j].uri,					'metadata': {						'title': curTracklist.tracks[j].title,						'album': curTracklist.tracks[j].album,						'artists': libFast.map(curTracklist.tracks[j].artist.split(','), function(sArtist) {							// TODO - parse other options in artist string, such as "feat."							return sArtist.trim();						}),						'genres': [],						'tracknumber': 0,						'date': ''					}				});			}			return libQ.resolve();		});
meta: 3465	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3465/821971c3c9603507fa3c85327d943d033fc5d161/index.js/buggy/app/controllers/spop/index.js