From 475c2df048fa5c42ba913ceeba3e6201938031f7 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 31 May 2010 19:17:19 +0200 Subject: rewrite util.js to be more compliant with SDK usage. --- lib/bzpage.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/bzpage.js') diff --git a/lib/bzpage.js b/lib/bzpage.js index c4c88f3..bad7b5e 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -3,6 +3,7 @@ // Released under the MIT/X11 license // http://www.opensource.org/licenses/mit-license.php "use strict"; +var utilMod = require("util"); var TriagedDistro = 13; var NumberOfFrames = 7; @@ -55,7 +56,7 @@ exports.BZPage = function BZPage(doc) { } this.submitHandlerInstalled = false; - this.bugNo = hlpr.getBugNo(this.doc.location.toString()); + this.bugNo = utilMod.getBugNo(this.doc.location.toString()); this.reporter = this.getReporter(); this.product = this.getOptionValue("product"); this.component = this.getOptionValue("component"); @@ -486,7 +487,7 @@ BZPage.prototype.addStuffToTextBox = function(id, stuff) { stuff = textBox.value ? "\n\n" + stuff : stuff; textBox.value += stuff; } else { - textBox.value = hlpr.addCSVValue(textBox.value,stuff); + textBox.value = utilMod.addCSVValue(textBox.value,stuff); } }; @@ -498,7 +499,7 @@ BZPage.prototype.addStuffToTextBox = function(id, stuff) { */ BZPage.prototype.removeStuffFromTextBox = function(id, stuff) { let changedElement = this.getElementById(id); - changedElement.value = hlpr.removeCSVValue(changedElement.value,stuff); + changedElement.value = utilMod.removeCSVValue(changedElement.value,stuff); } /** @@ -723,7 +724,7 @@ BZPage.prototype.addToCCList = function(who) { this.doc.getElementById("addselfcc").checked = true; } else { this.clickMouse("cc_edit_area_showhide"); - if (!hlpr.isInList(who, this.CCList)) { + if (!utilMod.isInList(who, this.CCList)) { this.addStuffToTextBox("newcc",who); } } -- cgit