aboutsummaryrefslogtreecommitdiffstats
path: root/data/mozlib/mozpage.js
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/mozlib/mozpage.js
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/mozlib/mozpage.js')
-rw-r--r--data/mozlib/mozpage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/mozlib/mozpage.js b/data/mozlib/mozpage.js
index 86c1559..5185cd7 100644
--- a/data/mozlib/mozpage.js
+++ b/data/mozlib/mozpage.js
@@ -58,10 +58,10 @@ var mozFlags = (function() {
})();
// Currently empty message handler
-function MozOnMessageHandler(msg, nextHandler) {
+function MozOnMessageHandler(msg, nextHandlerList) {
switch (msg.cmd) {
default:
- if (nextHandler) {
+ if (nextHandlerList) {
var nextHandler = nextHandlerList.splice(0, 1);
if (nextHandler[0]) {
nextHandler[0](msg, nextHandlerList);