diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-31 23:37:20 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-31 23:47:16 +0200 |
commit | ab2fc02dcb0743217cedeb845578b849eb638645 (patch) | |
tree | d17b1f1c9d74da885ea09685ad6f76f0c2ce23a1 | |
parent | 260e38148d2ca6e285ced45e871db7f21c6fdb87 (diff) | |
download | bugzilla-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.
-rw-r--r-- | data/mozlib/mozpage.js | 4 | ||||
-rw-r--r-- | data/rhlib/rhbzpage.js | 4 | ||||
-rw-r--r-- | data/tweaks/bug-page-mod.js | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | update.rdf | 15 |
5 files changed, 21 insertions, 6 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); 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); diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js index 20f16ea..c72cf94 100644 --- a/data/tweaks/bug-page-mod.js +++ b/data/tweaks/bug-page-mod.js @@ -41,7 +41,7 @@ function TweakOnMessageHandler(msg, nextHandlerList) { processHistory(msg.data); break; default: - if (nextHandler) { + if (nextHandlerList) { var nextHandler = nextHandlerList.splice(0, 1); if (nextHandler[0]) { nextHandler[0](msg, nextHandlerList); diff --git a/package.json b/package.json index 5e6d398..4f51983 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "description": "Additional buttons and other function helping in the triage on bugzilla", "author": "Matej Cepl (http://matej.ceplovi.cz)", "license": "MIT/X11 (http://opensource.org/licenses/mit-license.php) and MPL", - "version": "1.2", + "version": "1.3", "contributors": [ "Ehsan Akhgari (http://ehsanakhgari.org/) <ehsan@mozilla.com>", "Johnathan Nightingale (http://johnath.com) <johnath@mozilla.com>", @@ -532,6 +532,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> </em:targetApplication> </Description> </li> + <li> + <Description> + <em:version>1.3</em:version> + <em:targetApplication> + <Description> + <em:id> + {ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> + <em:minVersion>4.0b7</em:minVersion> + <em:maxVersion>7.0a1</em:maxVersion> + <em:updateLink> + https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.3.xpi</em:updateLink> + </Description> + </em:targetApplication> + </Description> + </li> </Seq> </em:updates> </Description> |