aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-09-25 23:14:00 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-09-25 23:14:00 +0200
commitb1eb91d2068b2ea4b983977412821d4fa9640e4e (patch)
tree3eb3e0da57fc5b290d435353331ce8b188756b4e /lib
parentfcafe9d584797044fc24be1b3fb67da284e0cf17 (diff)
downloadbugzilla-triage-b1eb91d2068b2ea4b983977412821d4fa9640e4e.tar.gz
Massive reformatting to make Eclipse happy
Diffstat (limited to 'lib')
-rw-r--r--lib/clipboard.js3
-rw-r--r--lib/passwords.js4
-rw-r--r--lib/prompts.js5
-rw-r--r--lib/rhbzpage.js8
-rw-r--r--lib/util.js3
5 files changed, 15 insertions, 8 deletions
diff --git a/lib/clipboard.js b/lib/clipboard.js
index fb1768a..608bbc0 100644
--- a/lib/clipboard.js
+++ b/lib/clipboard.js
@@ -1,6 +1,7 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
-var {Cc,Ci} = require("chrome");
+var Cc = require("chrome").Cc;
+var Ci = require("chrome").Ci;
/**
* returns content of the system clipboard
diff --git a/lib/passwords.js b/lib/passwords.js
index 49b945f..cc9c16b 100644
--- a/lib/passwords.js
+++ b/lib/passwords.js
@@ -2,7 +2,9 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
"use strict";
-var {Cc,Ci,components} = require("chrome");
+var Cc = require("chrome").Cc;
+var Ci = require("chrome").Ci;
+var components = require("chrome").components;
function getLoginInfo(username, pass,
domain, realm) {
diff --git a/lib/prompts.js b/lib/prompts.js
index bb42c39..45f388a 100644
--- a/lib/prompts.js
+++ b/lib/prompts.js
@@ -4,7 +4,8 @@
// http://www.opensource.org/licenses/mit-license.php
"use strict";
// ==============================================================
-var {Cc,Ci} = require("chrome");
+var Cc = require("chrome").Cc;
+var Ci = require("chrome").Ci;
// just for JSLINT var Cc, Ci = {};
var promptTitle = "Bugzilla Triage Script";
@@ -106,7 +107,7 @@ exports.promptFileOpenPicker = function promptFilePicker (win) {
if (res === Ci.nsIFilePicker.returnOK ||
res === Ci.nsIFilePicker.returnReplace ) {
- return fp.file.path
+ return fp.file.path;
}
return null;
};
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 9bbc81f..0c3c0e9 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -286,8 +286,9 @@ RHBugzillaPage.prototype.pasteBacktraceInComments = function() {
}
notedLabel.parentNode.removeChild(notedLabel);
- var abrtQueryURL = "https://bugzilla.redhat.com/buglist.cgi?"
- + "cmdtype=dorem&remaction=run&namedcmd=all%20NEW%20abrt%20crashes&sharer_id=74116";
+ var abrtQueryURL = "https://bugzilla.redhat.com/buglist.cgi?" +
+ "cmdtype=dorem&remaction=run&namedcmd=all%20NEW%20abrt%20crashes&"+
+ "sharer_id=74116";
var mainTitle = this.doc
.getElementsByClassName("bz_alias_short_desc_container")[0];
@@ -377,7 +378,8 @@ RHBugzillaPage.prototype.addShowParsedBTLink = function addShowParsedBTLink(att)
/**
* Unfinished ... see above
*/
-RHBugzillaPage.prototype.addNewAttachmentRow = function addNewAttachmentRow(origAtt, newAttId, newAttSize) {
+RHBugzillaPage.prototype.addNewAttachmentRow = function addNewAttachmentRow(origAtt,
+ newAttId, newAttSize) {
var that = this;
var oldAddBTLink = this.doc.getElementById("attachBacktraceActivator");
oldAddBTLink.parentNode.removeChild(oldAddBTLink);
diff --git a/lib/util.js b/lib/util.js
index f9a14c7..4612b66 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -4,7 +4,8 @@
// http://www.opensource.org/licenses/mit-license.php
"use strict";
// ==============================================================
-var {Cc,Ci} = require("chrome");
+var Cc = require("chrome").Cc;
+var Ci = require("chrome").Ci;
var urlMod = require("url");
/**