From e9ba093c15297eb0c64b660fee18953854201192 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 7 Sep 2006 01:30:10 +0000 Subject: [PATCH] oops --- chrome/chromeFiles/content/scholar/xpcom/utilities.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/utilities.js b/chrome/chromeFiles/content/scholar/xpcom/utilities.js index 57c41bcace..32e7f6ea05 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/utilities.js +++ b/chrome/chromeFiles/content/scholar/xpcom/utilities.js @@ -71,7 +71,7 @@ Scholar.Utilities.prototype.cleanString = function(s) { * Cleans any non-word non-parenthesis characters off the ends of a string */ Scholar.Utilities.prototype.superCleanString = function(x) { - if(typeof(s) != "string") { + if(typeof(x) != "string") { throw "superCleanString: argument must be a string"; } @@ -83,7 +83,7 @@ Scholar.Utilities.prototype.superCleanString = function(x) { * Eliminates HTML tags, replacing
s with /ns */ Scholar.Utilities.prototype.cleanTags = function(x) { - if(typeof(s) != "string") { + if(typeof(x) != "string") { throw "cleanTags: argument must be a string"; } @@ -134,10 +134,6 @@ Scholar.Utilities.prototype.inArray = Scholar.inArray; * pads a number or other string with a given string on the left */ Scholar.Utilities.prototype.lpad = function(string, pad, length) { - if(typeof(s) != "string") { - throw "lpad: argument must be a string"; - } - while(string.length < length) { string = pad + string; }