aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-05-31 19:17:19 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-05-31 19:17:19 +0200
commit475c2df048fa5c42ba913ceeba3e6201938031f7 (patch)
tree5a77c7f6c5bff188ce96020d6186fcb2f07696e5 /lib/main.js
parent2447e31a804eb7d7fe5ef01b974cba3b615e0594 (diff)
downloadbugzilla-triage-475c2df048fa5c42ba913ceeba3e6201938031f7.tar.gz
rewrite util.js to be more compliant with SDK usage.
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js
index 1a2dd7e..ac01868 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -3,6 +3,9 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
"use strict";
+var utilMod = require("util");
+var logMod = require("logger");
+
jetpack.future.import("pageMods");
jetpack.future.import("storage.simple");
jetpack.future.import("selection");
@@ -55,7 +58,7 @@ config.matches = [
"https://bugzilla.redhat.com/show_bug.cgi",
"https://bugzilla.mozilla.org/show_bug.cgi"
];
-hlpr.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) {
+utilMod.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) {
config.gJSONData = parsedData;
// Get card translation table
@@ -64,12 +67,12 @@ hlpr.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) {
keys += key + " ";
}
if ("PCIIDsURL" in config.gJSONData.configData) {
- hlpr.loadJSON(config.gJSONData.configData.PCIIDsURL, function(response) {
+ utilMod.loadJSON(config.gJSONData.configData.PCIIDsURL, function(response) {
config.PCI_ID_Array = response;
});
}
- config.logger = new Logger(myStorage.logs,
+ config.logger = new logMod.Logger(myStorage.logs,
config.gJSONData.constantData.bugzillalabelAbbreviations);
let callback = function(doc) {