rem: for (r=startTrack; r <= parsedData['last_item']; r++) { refreshPlaylistElements(parsedData, r); 
add:  var startTrackKey = 'byfrominfo_' + startTrack; if ($(startTrackKey)) {  var cullRowStart = parseInt(parsedData['last_item'])+1; truncateAt('playlist_table', cullRowStart);   for (r=pageFirstItem; r <= pageLastItem; r++) { refreshPlaylistElements(parsedData, r); } } else { for (r=pageFirstItem; r <= pageLastItem; r++) { refreshPlaylistElements(parsedData, r); } 
context: function refreshAll(theData) {	var parsedData = fillDataHash(theData);	var startTrack = getStartTrack(parsedData);	// refresh playlist header	if ($('playlistsize')) {		$('playlistsize').innerHTML = parsedData['playlistsize'];	}	// refresh pagebar and pagebarheader	var prefix = [ 'header_', 'footer_' ];	var suffix = [ 'first_item', 'last_item', 'playlistsize' ];	for (var i=0; i < prefix.length; i++) {		for (var j=0; j < suffix.length; j++) {			var thisId = prefix[i] + suffix[j];			if ($(thisId)) {				var key = suffix[j];				if (key == 'playlistsize') {					$(thisId).innerHTML = parsedData[key];				} else {					$(thisId).innerHTML = parseInt(parsedData[key])+1;				}			}		}	}	// truncate rows that need not be there	var cullRowStart = parseInt(parsedData['last_item'])+1;	truncateAt('playlist_table', cullRowStart);	for (r=startTrack; r <= parsedData['last_item']; r++) {		refreshPlaylistElements(parsedData, r);	}}
meta: 6551	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6551/3841beee5b9a840217c366ea805ccb0714852406/playlist.js/buggy/HTML/Nokia770/playlist.js