diff options
author | Andrew Dolgov <[email protected]> | 2006-05-23 09:59:00 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-05-23 09:59:00 +0100 |
commit | f54f515f440f69de6479fef14cd2aae004aff551 (patch) | |
tree | f1a4ff1ea4952dfc72c85dcd7cb5ff7832f7427d /functions.js | |
parent | a756529344fa6bfab8deded10c9750ce1bfd56ac (diff) |
report runtime info in counter callbacks
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/functions.js b/functions.js index 355793640..e58a97036 100644 --- a/functions.js +++ b/functions.js @@ -470,6 +470,11 @@ function parse_counters(reply, scheduled_call) { var f_document = getFeedsContext().document; var title_obj = getMainContext(); + if (reply.firstChild && reply.firstChild.firstChild) { + debug("<b>wrong element passed to parse_counters, adjusting.</b>"); + reply = reply.firstChild; + } + debug("F_DOC: " + f_document + ", T_OBJ: " + title_obj); for (var l = 0; l < reply.childNodes.length; l++) { @@ -565,7 +570,9 @@ function all_counters_callback() { var reply = xmlhttp_rpc.responseXML.firstChild; - parse_counters(reply); + var counters = reply.firstChild; + + parse_counters(counters); } catch (e) { exception_error("all_counters_callback", e); |