-should fix delay in rendering the now playing bar when song starts.

This commit is contained in:
martin 2011-01-27 14:17:35 -05:00
parent 4441001eca
commit 14e049631e

View file

@ -29,8 +29,11 @@ function registerSongEndListener(func){
}
function notifySongEndListener(){
if (typeof songEndFunc == "function")
songEndFunc();
if (typeof songEndFunc == "function"){
//create a slight pause in execution to allow the browser
//to update the display.
setTimeout(songEndFunc, 50);
}
}
function getTrackInfo(song){