commit e9ba093c15297eb0c64b660fee18953854201192
parent cf8dc232b13ebad70b0e4118cd1a896d010cfa48
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 7 Sep 2006 01:30:10 +0000
oops
Diffstat:
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
@@ -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 <br>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;
}