mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 06:22:26 +01:00
add some missing semicolons and remove some trailing commas
This commit is contained in:
@@ -70,7 +70,7 @@ liberator.Bookmarks = function () //{{{
|
||||
return {
|
||||
itemId: id,
|
||||
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"],
|
||||
"Toggle bookmarked state of current URL",
|
||||
function () { liberator.bookmarks.toggle(liberator.buffer.URL); });
|
||||
function () liberator.bookmarks.toggle(liberator.buffer.URL));
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||
@@ -973,7 +973,7 @@ liberator.QuickMarks = function () //{{{
|
||||
|
||||
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)
|
||||
{
|
||||
liberator.echoerr("E283: No QuickMarks matching \"" + filter + "\"");
|
||||
|
||||
@@ -1025,8 +1025,7 @@ liberator.Buffer = function () //{{{
|
||||
var start = document.commandDispatcher.focusedWindow;
|
||||
frames = frames.filter(function (frame) {
|
||||
frame.focus();
|
||||
if (document.commandDispatcher.focusedWindow == frame)
|
||||
return frame;
|
||||
return document.commandDispatcher.focusedWindow == frame;
|
||||
});
|
||||
start.focus();
|
||||
|
||||
@@ -1743,10 +1742,7 @@ liberator.Marks = function () //{{{
|
||||
|
||||
if (filter.length > 0)
|
||||
{
|
||||
marks = marks.filter(function (mark) {
|
||||
if (filter.indexOf(mark[0]) > -1)
|
||||
return mark;
|
||||
});
|
||||
marks = marks.filter(function (mark) filter.indexOf(mark[0]) >= 0);
|
||||
if (marks.length == 0)
|
||||
{
|
||||
liberator.echoerr("E283: No marks matching \"" + filter + "\"");
|
||||
|
||||
@@ -546,7 +546,7 @@ liberator.IO = function () //{{{
|
||||
let dir = environmentService.get("TMPDIR") || environmentService.get("TMP")
|
||||
|| environmentService.get("TEMP") || (WINDOWS ? "C:\\" : "/tmp/");
|
||||
|
||||
file.initWithPath(dir)
|
||||
file.initWithPath(dir);
|
||||
file.appendRelativePath(tmpName);
|
||||
file.createUnique(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0600);
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ liberator.Tabs = function () //{{{
|
||||
return [
|
||||
["0", "Never show tab bar"],
|
||||
["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
|
||||
|
||||
@@ -403,7 +403,7 @@ liberator.CommandLine = function () //{{{
|
||||
["longest", "Complete to longest common string"],
|
||||
["list", "If more than one match, list all matches"],
|
||||
["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)
|
||||
@@ -463,7 +463,7 @@ liberator.CommandLine = function () //{{{
|
||||
{
|
||||
if (lastMowOutput)
|
||||
liberator.commandline.echo(lastMowOutput,
|
||||
liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE)
|
||||
liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
||||
else
|
||||
liberator.beep();
|
||||
});
|
||||
@@ -1169,7 +1169,7 @@ liberator.CommandLine = function () //{{{
|
||||
{
|
||||
completionIndex = historyIndex = UNINITIALIZED;
|
||||
wildIndex = 0;
|
||||
},
|
||||
}
|
||||
};
|
||||
//}}}
|
||||
}; //}}}
|
||||
@@ -1198,7 +1198,7 @@ liberator.ItemList = function (id) //{{{
|
||||
var iframe = document.getElementById(id);
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -1500,7 +1500,7 @@ liberator.StatusLine = function () //{{{
|
||||
return [
|
||||
["0", "Never display status line"],
|
||||
["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
|
||||
|
||||
Reference in New Issue
Block a user