1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 15:48:00 +01:00

remove redundant boolean equality test in v.bookmarks.add

This commit is contained in:
Doug Kearns
2007-11-01 01:18:00 +00:00
parent 418181ad1e
commit 835b6fc726

View File

@@ -116,7 +116,7 @@ vimperator.Bookmarks = function() //{{{
load();
// if no protocol specified, default to http://, isn't there a better way?
if (/^\w+:/.test(url) == false)
if (!/^\w+:/.test(url))
url = "http://" + url;
try
@@ -718,12 +718,12 @@ vimperator.Marks = function() //{{{
"<table><tr align=\"left\" class=\"hl-Title\"><th>mark</th><th>line</th><th>col</th><th>file</th></tr>";
for (var i = 0; i < marks.length; i++)
{
list += "<tr>"
+ "<td> " + marks[i][0] + "</td>"
+ "<td align=\"right\">" + Math.round(marks[i][1].position.y * 100) + "%</td>"
+ "<td align=\"right\">" + Math.round(marks[i][1].position.x * 100) + "%</td>"
+ "<td style=\"color: green;\">" + vimperator.util.escapeHTML(marks[i][1].location) + "</td>"
+ "</tr>";
list += "<tr>" +
"<td> " + marks[i][0] + "</td>" +
"<td align=\"right\">" + Math.round(marks[i][1].position.y * 100) + "%</td>" +
"<td align=\"right\">" + Math.round(marks[i][1].position.x * 100) + "%</td>" +
"<td style=\"color: green;\">" + vimperator.util.escapeHTML(marks[i][1].location) + "</td>" +
"</tr>";
}
list += "</table>";