From e6fc443ce7008856fc4285ae9020deeb442e04a6 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 31 May 2011 23:37:20 +0200 Subject: Fix broken subsequent calls to message handlers. Fixes #104 But really, this is whole broken, and we need to eliminate direct calls and use event handlers internally. --- data/rhlib/rhbzpage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rhlib/rhbzpage.js') diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index a130306..c3c36de 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -57,7 +57,7 @@ var ProfessionalProducts = [ var btSnippet = null; -function RHOnMessageHandler(msg, nextHandler) { +function RHOnMessageHandler(msg, nextHandlerList) { switch (msg.cmd) { case "Error": alert("Error " + msg.data); @@ -78,7 +78,7 @@ function RHOnMessageHandler(msg, nextHandler) { queryUpstreamCallback(msg.data, constantData.queryUpstreamBug); break; default: - if (nextHandler) { + if (nextHandlerList) { var nextHandler = nextHandlerList.splice(0, 1); if (nextHandler[0]) { nextHandler[0](msg, nextHandlerList); -- cgit