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-05-31 23:47:16 +0200
commitab2fc02dcb0743217cedeb845578b849eb638645 (patch)
treed17b1f1c9d74da885ea09685ad6f76f0c2ce23a1 /data/rhlib
parent260e38148d2ca6e285ced45e871db7f21c6fdb87 (diff)
downloadbugzilla-triage-ab2fc02dcb0743217cedeb845578b849eb638645.tar.gz
Fix broken subsequent calls to message handlers.1.3
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 7060a37..0ad98f5 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);