aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-29 13:38:04 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-29 13:38:04 +0200
commit58d631cdccdda18ec6071444e5df5a4a6c35cefe (patch)
treef8c7953d2b34c9ba5c83c75d31bbfc43fc0d83ed /data/lib/bzpage.js
parente3989a9404d19fb5164b39f7f6c78e64cc85b137 (diff)
downloadbugzilla-triage-58d631cdccdda18ec6071444e5df5a4a6c35cefe.tar.gz
Incompatibility bits.
* global onMessage is not chic anymore, replacing with self.on handler. * filterByRegexp returns string and could return null. Make sure we can survive it.
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r--data/lib/bzpage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index 02c8e3c..76dd1a7 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -21,7 +21,7 @@ var equivalentComponents = null;
/**
* central handler processing messages from the main script.
*/
-onMessage = function onMessage(msg) {
+self.on('message', function onMessage(msg) {
console.log("onMessage - incoming : msg.cmd = " + msg.cmd);
switch (msg.cmd) {
case "ReloadThePage":
@@ -50,7 +50,7 @@ onMessage = function onMessage(msg) {
console.error("Error: unknown RPC call " + msg.toSource());
}
}
-};
+});
/**
* @param cmd