mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 17:57:58 +01:00
remove redundant boolean equality test in v.bookmarks.add
This commit is contained in:
@@ -116,7 +116,7 @@ vimperator.Bookmarks = function() //{{{
|
|||||||
load();
|
load();
|
||||||
|
|
||||||
// if no protocol specified, default to http://, isn't there a better way?
|
// 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;
|
url = "http://" + url;
|
||||||
|
|
||||||
try
|
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>";
|
"<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++)
|
for (var i = 0; i < marks.length; i++)
|
||||||
{
|
{
|
||||||
list += "<tr>"
|
list += "<tr>" +
|
||||||
+ "<td> " + marks[i][0] + "</td>"
|
"<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.y * 100) + "%</td>" +
|
||||||
+ "<td align=\"right\">" + Math.round(marks[i][1].position.x * 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>"
|
"<td style=\"color: green;\">" + vimperator.util.escapeHTML(marks[i][1].location) + "</td>" +
|
||||||
+ "</tr>";
|
"</tr>";
|
||||||
}
|
}
|
||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user