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

add some missing semicolons and remove some trailing commas

This commit is contained in:
Doug Kearns
2008-09-28 11:38:51 +00:00
parent fa1765465e
commit 6f6922f035
5 changed files with 14 additions and 18 deletions

View File

@@ -68,9 +68,9 @@ liberator.Bookmarks = function () //{{{
function readBookmark(id) function readBookmark(id)
{ {
return { return {
itemId: id, itemId: id,
uri: bookmarksService.getBookmarkURI(id).spec, uri: bookmarksService.getBookmarkURI(id).spec,
title: bookmarksService.getItemTitle(id), title: bookmarksService.getItemTitle(id)
}; };
} }
@@ -220,7 +220,7 @@ liberator.Bookmarks = function () //{{{
liberator.mappings.add(modes, ["A"], liberator.mappings.add(modes, ["A"],
"Toggle bookmarked state of current URL", "Toggle bookmarked state of current URL",
function () { liberator.bookmarks.toggle(liberator.buffer.URL); }); function () liberator.bookmarks.toggle(liberator.buffer.URL));
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS //////////////////////////////////////////////// ////////////////////// COMMANDS ////////////////////////////////////////////////
@@ -973,7 +973,7 @@ liberator.QuickMarks = function () //{{{
if (filter.length > 0) if (filter.length > 0)
{ {
marks = marks.filter(function (qmark) filter.indexOf(qmark) >= 0) marks = marks.filter(function (qmark) filter.indexOf(qmark) >= 0);
if (marks.length == 0) if (marks.length == 0)
{ {
liberator.echoerr("E283: No QuickMarks matching \"" + filter + "\""); liberator.echoerr("E283: No QuickMarks matching \"" + filter + "\"");

View File

@@ -1025,8 +1025,7 @@ liberator.Buffer = function () //{{{
var start = document.commandDispatcher.focusedWindow; var start = document.commandDispatcher.focusedWindow;
frames = frames.filter(function (frame) { frames = frames.filter(function (frame) {
frame.focus(); frame.focus();
if (document.commandDispatcher.focusedWindow == frame) return document.commandDispatcher.focusedWindow == frame;
return frame;
}); });
start.focus(); start.focus();
@@ -1743,10 +1742,7 @@ liberator.Marks = function () //{{{
if (filter.length > 0) if (filter.length > 0)
{ {
marks = marks.filter(function (mark) { marks = marks.filter(function (mark) filter.indexOf(mark[0]) >= 0);
if (filter.indexOf(mark[0]) > -1)
return mark;
});
if (marks.length == 0) if (marks.length == 0)
{ {
liberator.echoerr("E283: No marks matching \"" + filter + "\""); liberator.echoerr("E283: No marks matching \"" + filter + "\"");

View File

@@ -546,7 +546,7 @@ liberator.IO = function () //{{{
let dir = environmentService.get("TMPDIR") || environmentService.get("TMP") let dir = environmentService.get("TMPDIR") || environmentService.get("TMP")
|| environmentService.get("TEMP") || (WINDOWS ? "C:\\" : "/tmp/"); || environmentService.get("TEMP") || (WINDOWS ? "C:\\" : "/tmp/");
file.initWithPath(dir) file.initWithPath(dir);
file.appendRelativePath(tmpName); file.appendRelativePath(tmpName);
file.createUnique(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0600); file.createUnique(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0600);

View File

@@ -147,7 +147,7 @@ liberator.Tabs = function () //{{{
return [ return [
["0", "Never show tab bar"], ["0", "Never show tab bar"],
["1", "Show tab bar only if more than one tab is open"], ["1", "Show tab bar only if more than one tab is open"],
["2", "Always show tab bar"], ["2", "Always show tab bar"]
]; ];
}, },
validator: function (value) value >= 0 && value <= 2 validator: function (value) value >= 0 && value <= 2

View File

@@ -403,7 +403,7 @@ liberator.CommandLine = function () //{{{
["longest", "Complete to longest common string"], ["longest", "Complete to longest common string"],
["list", "If more than one match, list all matches"], ["list", "If more than one match, list all matches"],
["list:full", "List all and complete first match"], ["list:full", "List all and complete first match"],
["list:longest", "List all and complete common string"], ["list:longest", "List all and complete common string"]
]; ];
}, },
validator: function (value) validator: function (value)
@@ -463,7 +463,7 @@ liberator.CommandLine = function () //{{{
{ {
if (lastMowOutput) if (lastMowOutput)
liberator.commandline.echo(lastMowOutput, liberator.commandline.echo(lastMowOutput,
liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE) liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
else else
liberator.beep(); liberator.beep();
}); });
@@ -1169,7 +1169,7 @@ liberator.CommandLine = function () //{{{
{ {
completionIndex = historyIndex = UNINITIALIZED; completionIndex = historyIndex = UNINITIALIZED;
wildIndex = 0; wildIndex = 0;
}, }
}; };
//}}} //}}}
}; //}}} }; //}}}
@@ -1198,7 +1198,7 @@ liberator.ItemList = function (id) //{{{
var iframe = document.getElementById(id); var iframe = document.getElementById(id);
if (!iframe) if (!iframe)
{ {
liberator.log("No iframe with id: " + id + " found, strange things may happen!") // "The truth is out there..." -- djk liberator.log("No iframe with id: " + id + " found, strange things may happen!"); // "The truth is out there..." -- djk
return; return;
} }
@@ -1500,7 +1500,7 @@ liberator.StatusLine = function () //{{{
return [ return [
["0", "Never display status line"], ["0", "Never display status line"],
["1", "Display status line only if there are multiple windows"], ["1", "Display status line only if there are multiple windows"],
["2", "Always display status line"], ["2", "Always display status line"]
]; ];
}, },
validator: function (value) value >= 0 && value <= 2 validator: function (value) value >= 0 && value <= 2