From 8f3b99baec45d835ebc78e372cdfcaa702b13e3e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Sep 2006 05:57:07 +0100 Subject: [PATCH] show new page on page catchup (2) --- viewfeed.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/viewfeed.js b/viewfeed.js index 8c0e03a74..e3aa51b05 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -3,9 +3,15 @@ var _catchup_callback_func = false; function catchup_callback() { if (xmlhttp_rpc.readyState == 4) { - debug("catchup_callback"); - setTimeout("viewCurrentFeed()", 100); - all_counters_callback(); + try { + debug("catchup_callback"); + if (_catchup_callback_func) { + setTimeout(_catchup_callback_func, 100); + } + all_counters_callback(); + } catch (e) { + exception_error("catchup_callback", e); + } } }