aboutsummaryrefslogtreecommitdiffstats
path: root/data/rhlib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-31 23:37:20 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:48 +0200
commite6fc443ce7008856fc4285ae9020deeb442e04a6 (patch)
treeaad2597432f5e77ca4450a137759f1e06b5dac7c /data/rhlib
parentdbde936df9b45730586677f1d178044668d86229 (diff)
downloadbugzilla-triage-e6fc443ce7008856fc4285ae9020deeb442e04a6.tar.gz
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.
Diffstat (limited to 'data/rhlib')
-rw-r--r--data/rhlib/rhbzpage.js4
1 files changed, 2 insertions, 2 deletions
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);