aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-19 11:08:04 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-19 11:08:04 +0200
commitdfde7d9860de703ba0721059ff4b795fcad07340 (patch)
tree02cbd5e885888b587375a576d7bd77c77453e17e /lib/bzpage.js
parent3692a4dc4dd3b83fa1bda6f002aeb86c0df2cc5f (diff)
downloadbugzilla-triage-dfde7d9860de703ba0721059ff4b795fcad07340.tar.gz
Yet another fix for the chip magic.
- all constant data moved to this.constantData, so that they are available everywhere.
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 6d04f52..9e4af63 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -65,14 +65,15 @@ var BZPage = function BZPage(win, config) {
this.commentStrings = config.gJSONData.commentStrings;
}
+ this.constantData = {};
if ("constantData" in config.gJSONData) {
this.constantData = config.gJSONData.constantData;
this.constantData.queryUpstreamBug = JSON.parse(
selfMod.data.load("queryUpstreamBug.json"));
}
- if ("CCmaintainer" in config.gJSONData.constantData) {
- this.defBugzillaMaintainerArr = config.gJSONData.constantData.CCmaintainer;
+ if ("CCmaintainer" in this.constantData) {
+ this.defBugzillaMaintainerArr = this.constantData.CCmaintainer;
}
if ("suspiciousComponents" in config.gJSONData.configData) {