1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 00:17:57 +01:00

remove unnecessary toString() call

This commit is contained in:
Doug Kearns
2007-08-04 12:18:59 +00:00
parent aa29879a3b
commit c72995f666

View File

@@ -175,7 +175,7 @@ function Bookmarks() //{{{
if (!search_engines.some( function(item) { return (item[0] == newalias); } )) if (!search_engines.some( function(item) { return (item[0] == newalias); } ))
break; break;
newalias = alias + j.toString(); newalias = alias + j;
} }
// only write when it changed, writes are really slow // only write when it changed, writes are really slow
if (firefox_engines[i].alias != newalias) if (firefox_engines[i].alias != newalias)
@@ -279,7 +279,7 @@ function Bookmarks() //{{{
while (!str.match(/^\s*$/)) while (!str.match(/^\s*$/))
{ {
/* first check for --tags */ // first check for --tags
match_tags = str.match(re_tags); match_tags = str.match(re_tags);
if (match_tags != null) if (match_tags != null)
{ {
@@ -287,7 +287,7 @@ function Bookmarks() //{{{
tags = match_tags[3].split(","); tags = match_tags[3].split(",");
res.tags = res.tags.concat(tags); res.tags = res.tags.concat(tags);
} }
else /* then for --titles */ else // then for --titles
{ {
match_title = str.match(re_title); match_title = str.match(re_title);
@@ -303,7 +303,7 @@ function Bookmarks() //{{{
title = title.substring(1,title.length-1); title = title.substring(1,title.length-1);
res.title = title; res.title = title;
} }
else /* at last check for a URL */ else // at last check for a URL
{ {
match_url = str.match(re_url); match_url = str.match(re_url);
if (match_url != null) if (match_url != null)