diff options
author | Andrew Dolgov <[email protected]> | 2006-09-29 05:57:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-09-29 05:57:07 +0100 |
commit | 8f3b99baec45d835ebc78e372cdfcaa702b13e3e (patch) | |
tree | a41c6fda6f867d9fc506a67d1d9136cd62a6d263 | |
parent | e08443c1bf2b2ab456ca1ec460f9059cad3536b6 (diff) |
show new page on page catchup (2)
-rw-r--r-- | viewfeed.js | 12 |
1 files 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); + } } } |