diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-31 01:39:46 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:53:48 +0200 |
commit | 3a7b19da58572396648df1ab215228d01129aede (patch) | |
tree | a4cdf30fe609e0c0336c089906995053c14f4475 /data/tweaks/bug-page-mod.js | |
parent | 16b78ccadf021cc9255016ab5dac31558d28dea4 (diff) | |
download | bugzilla-triage-3a7b19da58572396648df1ab215228d01129aede.tar.gz |
First draft of the flags handling for Mozilla bugzilla.
Will fix #103 (when reviewed)
Diffstat (limited to 'data/tweaks/bug-page-mod.js')
-rw-r--r-- | data/tweaks/bug-page-mod.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js index d0f8095..9be8551 100644 --- a/data/tweaks/bug-page-mod.js +++ b/data/tweaks/bug-page-mod.js @@ -33,7 +33,7 @@ * ***** END LICENSE BLOCK ***** */ -function TweakOnMessageHandler(msg, nextHandler) { +function TweakOnMessageHandler(msg, nextHandlerList) { switch (msg.cmd) { case "Unhandled": break; @@ -42,7 +42,10 @@ function TweakOnMessageHandler(msg, nextHandler) { break; default: if (nextHandler) { - nextHandler(msg); + var nextHandler = nextHandlerList.splice(0, 1); + if (nextHandler[0]) { + nextHandler[0](msg, nextHandlerList); + } } else { console.error("Error: unknown RPC call " + msg.toSource()); |