Return false from the timeout callback function

Timeout callback function should not be rescheduled again with the same timeout
because we compute a new timeout and schedule it again instead. So the callback
function needs to return false to not be scheduled again by default.
This commit is contained in:
Marina Zhurakhinskaya 2009-07-24 12:58:53 -04:00
parent 2cc650e389
commit 978ab8a4dd

View File

@ -224,7 +224,7 @@ DocDisplay.prototype = {
docDisplayItem.redisplay(currentSecs);
this._updateTimeoutCallback(docDisplayItem, currentSecs);
}
return true;
return false;
},
// Updates the timeout callback if the timeout time for the docDisplayItem