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:
parent
2cc650e389
commit
978ab8a4dd
@ -224,7 +224,7 @@ DocDisplay.prototype = {
|
|||||||
docDisplayItem.redisplay(currentSecs);
|
docDisplayItem.redisplay(currentSecs);
|
||||||
this._updateTimeoutCallback(docDisplayItem, currentSecs);
|
this._updateTimeoutCallback(docDisplayItem, currentSecs);
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Updates the timeout callback if the timeout time for the docDisplayItem
|
// Updates the timeout callback if the timeout time for the docDisplayItem
|
||||||
|
Loading…
Reference in New Issue
Block a user