diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-22 17:18:44 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-22 17:18:44 +0200 |
commit | c1f7615fa2a5dcc15fa3ed7962016537dd31bbfd (patch) | |
tree | c166ac80ff488e8706161a4defb373ee71e13bcd /lib/bzpage.js | |
parent | 390f9042f82e4aaa6a57d08b9a5edfb38f688abf (diff) | |
download | bugzilla-triage-c1f7615fa2a5dcc15fa3ed7962016537dd31bbfd.tar.gz |
Make fixing MIME type again (includes creation of util.httpPOST)
- it is useful to have variable in the same module where the function using it
is.
- a lot of this magic and mystery
- add this.win property
- yuhooo, we have timer module, so I don't have to fish it from
this.doc.defaultView (which doesn't work anyway)
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r-- | lib/bzpage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js index 4906d13..8061577 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -10,12 +10,11 @@ var Color = require("color").Color; var TriagedDistro = 13; var NumberOfFrames = 7; -var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi"; var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id="; // ==================================================================================== // BZPage's methods -var BZPage = function BZPage(doc, config) { +var BZPage = function BZPage(win, config) { var keys = ""; for (var key in config) { keys += key + ", "; @@ -28,7 +27,8 @@ var BZPage = function BZPage(doc, config) { this.ReporterColor = new Color(255, 255, 166); // RGB 255, 255, 166; HSL 60, 2, // 83 // initialize dynamic properties - this.doc = doc; + this.win = win; + this.doc = win.document; this.packages = this.getInstalledPackages(config); if ("commentStrings" in config.gJSONData) { |