aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/bug-page-mod.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-31 01:39:46 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-05-31 01:44:58 +0200
commit2d8a9dabb4957ae1158ba000ee211b33bd0a81be (patch)
treeef1bddf7cae9957f8d4820cff531b62ff6ee1d21 /data/tweaks/bug-page-mod.js
parentb21ce54137dd75f42d98b3b15178e8f0ea056a14 (diff)
downloadbugzilla-triage-2d8a9dabb4957ae1158ba000ee211b33bd0a81be.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.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js
index 13d73ac..20f16ea 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());