From 978ab8a4dd4bfadddbec264519f4d2eaa09aff18 Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Fri, 24 Jul 2009 12:58:53 -0400 Subject: [PATCH] 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. --- js/ui/docDisplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/docDisplay.js b/js/ui/docDisplay.js index c507e67b5..3027936d9 100644 --- a/js/ui/docDisplay.js +++ b/js/ui/docDisplay.js @@ -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