From 835b6fc726e5e393664efdfadd6ae2f95ac05016 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 1 Nov 2007 01:18:00 +0000 Subject: [PATCH] remove redundant boolean equality test in v.bookmarks.add --- content/bookmarks.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/bookmarks.js b/content/bookmarks.js index 4164b572..601fb846 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -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() //{{{ ""; for (var i = 0; i < marks.length; i++) { - list += "" - + "" - + "" - + "" - + "" - + ""; + list += "" + + "" + + "" + + "" + + "" + + ""; } list += "
marklinecolfile
" + marks[i][0] + "" + Math.round(marks[i][1].position.y * 100) + "%" + Math.round(marks[i][1].position.x * 100) + "%" + vimperator.util.escapeHTML(marks[i][1].location) + "
" + marks[i][0] + "" + Math.round(marks[i][1].position.y * 100) + "%" + Math.round(marks[i][1].position.x * 100) + "%" + vimperator.util.escapeHTML(marks[i][1].location) + "
";