1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:17:59 +01:00

add missing semicolons

This commit is contained in:
Doug Kearns
2008-05-27 16:13:49 +00:00
parent ddd082003e
commit 9cb7ae4f36
3 changed files with 18 additions and 18 deletions

View File

@@ -169,14 +169,14 @@ liberator.Buffer = function () //{{{
} }
); );
liberator.options.add(["showstatuslinks", "ssli"], liberator.options.add(["showstatuslinks", "ssli"],
"Show the destination of the link under the cursor in the status bar", "Show the destination of the link under the cursor in the status bar",
"number", 1, "number", 1,
{ {
validator: function (value) { return (value >= 0 && value <= 2); } validator: function (value) { return (value >= 0 && value <= 2); }
}); });
liberator.options.add(["usermode", "um"], liberator.options.add(["usermode", "um"],
"Show current website with a minimal style sheet to make it easily accessible", "Show current website with a minimal style sheet to make it easily accessible",
"boolean", false, "boolean", false,
{ {
@@ -189,7 +189,7 @@ liberator.Buffer = function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
var modes = liberator.config.browserModes || [liberator.modes.NORMAL]; var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
liberator.mappings.add(modes, ["i", "<Insert>"], liberator.mappings.add(modes, ["i", "<Insert>"],
"Start caret mode", "Start caret mode",
function () function ()
@@ -416,7 +416,7 @@ liberator.Buffer = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS //////////////////////////////////////////////// ////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
liberator.commands.add(["ha[rdcopy]"], liberator.commands.add(["ha[rdcopy]"],
"Print current document", "Print current document",
function () { getBrowser().contentWindow.print(); }); function () { getBrowser().contentWindow.print(); });
@@ -433,7 +433,7 @@ liberator.Buffer = function () //{{{
"Save current document to disk", "Save current document to disk",
function (args, special) function (args, special)
{ {
var file = liberator.io.getFile(args || ""); var file = liberator.io.getFile(args || "");
// we always want to save that link relative to the current working directory // we always want to save that link relative to the current working directory
liberator.options.setPref("browser.download.lastDir", liberator.io.getCurrentDirectory()); liberator.options.setPref("browser.download.lastDir", liberator.io.getCurrentDirectory());
//if (args) //if (args)
@@ -451,7 +451,7 @@ liberator.Buffer = function () //{{{
liberator.commands.add(["vie[wsource]"], liberator.commands.add(["vie[wsource]"],
"View source code of current document", "View source code of current document",
function (args, special) { liberator.buffer.viewSource(args, special) }); function (args, special) { liberator.buffer.viewSource(args, special); });
liberator.commands.add(["zo[om]"], liberator.commands.add(["zo[om]"],
"Set zoom value of current web page", "Set zoom value of current web page",
@@ -510,7 +510,7 @@ liberator.Buffer = function () //{{{
{ {
window.content.document.pageIsFullyLoaded = value; window.content.document.pageIsFullyLoaded = value;
}, },
// used to keep track of the right field for "gi" // used to keep track of the right field for "gi"
get lastInputField() get lastInputField()
{ {
@@ -589,7 +589,7 @@ liberator.Buffer = function () //{{{
// argument "args" is something like: @id='myid' or @type='text' (don't forget the quotes around myid) // argument "args" is something like: @id='myid' or @type='text' (don't forget the quotes around myid)
getElement: function (args, index) getElement: function (args, index)
{ {
return liberator.buffer.evaluateXPath("//*[" + (args || "") + "]").snapshotItem(index || 0) return liberator.buffer.evaluateXPath("//*[" + (args || "") + "]").snapshotItem(index || 0);
}, },
// artificially "clicks" a link in order to open it // artificially "clicks" a link in order to open it
@@ -1231,7 +1231,7 @@ liberator.Buffer = function () //{{{
if (window.content.frames.length != 0) if (window.content.frames.length != 0)
{ {
retVal = followFrameRelationship(relationship, window.content); retVal = followFrameRelationship(relationship, window.content);
if (!retVal) if (!retVal)
{ {
// only loop through frames if the main content didnt match // only loop through frames if the main content didnt match
for (var i = 0; i < window.content.frames.length; i++) for (var i = 0; i < window.content.frames.length; i++)
@@ -1251,7 +1251,7 @@ liberator.Buffer = function () //{{{
liberator.beep(); liberator.beep();
}, },
viewSelectionSource: function () viewSelectionSource: function ()
{ {
// copied (and tuned somebit) from browser.jar -> nsContextMenu.js // copied (and tuned somebit) from browser.jar -> nsContextMenu.js
var focusedWindow = document.commandDispatcher.focusedWindow; var focusedWindow = document.commandDispatcher.focusedWindow;
@@ -1405,7 +1405,7 @@ liberator.Marks = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// MAPPINGS //////////////////////////////////////////////// ////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
var modes = liberator.config.browserModes || [liberator.modes.NORMAL]; var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
liberator.mappings.add(modes, liberator.mappings.add(modes,

View File

@@ -338,8 +338,8 @@ liberator.Hints = function () //{{{
case "V": liberator.buffer.viewSource(loc, true); break; case "V": liberator.buffer.viewSource(loc, true); break;
case "w": liberator.buffer.followLink(elem, liberator.NEW_WINDOW); break; case "w": liberator.buffer.followLink(elem, liberator.NEW_WINDOW); break;
case "W": liberator.commandline.open(":", "winopen " + loc, liberator.modes.EX); break; case "W": liberator.commandline.open(":", "winopen " + loc, liberator.modes.EX); break;
case "y": setTimeout(function () { liberator.util.copyToClipboard(loc, true) }, timeout + 50); break; case "y": setTimeout(function () { liberator.util.copyToClipboard(loc, true); }, timeout + 50); break;
case "Y": setTimeout(function () { liberator.util.copyToClipboard(elem.textContent || "", true) }, timeout + 50); break; case "Y": setTimeout(function () { liberator.util.copyToClipboard(elem.textContent || "", true); }, timeout + 50); break;
default: default:
liberator.echoerr("INTERNAL ERROR: unknown submode: " + submode); liberator.echoerr("INTERNAL ERROR: unknown submode: " + submode);
} }
@@ -384,7 +384,7 @@ liberator.Hints = function () //{{{
function contains(textOfLink) function contains(textOfLink)
{ {
for (var i = 0; i < tokens.length; i++) for (var i = 0; i < tokens.length; i++)
{ {
if (textOfLink.indexOf(tokens[i]) < 0) if (textOfLink.indexOf(tokens[i]) < 0)
return false; return false;
@@ -413,7 +413,7 @@ liberator.Hints = function () //{{{
var wcIdx = 0; var wcIdx = 0;
// Check if the current word matches same characters as the previous word. // Check if the current word matches same characters as the previous word.
// Each already matched word has matched at least one character. // Each already matched word has matched at least one character.
if (charIdx > numMatchedWords) if (charIdx > numMatchedWords)
{ {
var matchingStarted = false; var matchingStarted = false;
@@ -445,7 +445,7 @@ liberator.Hints = function () //{{{
// the word doesn't match additional characters, now check if the // the word doesn't match additional characters, now check if the
// already matched characters are equal to the next characters for matching, // already matched characters are equal to the next characters for matching,
// if yes, then consume them // if yes, then consume them
if (prevCharIdx == charIdx) if (prevCharIdx == charIdx)
{ {
for (var i = 0; i < wcIdx && charIdx < chars.length; i++, charIdx++) for (var i = 0; i < wcIdx && charIdx < chars.length; i++, charIdx++)
{ {
@@ -594,7 +594,7 @@ liberator.Hints = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}
////////////////////// MAPPINGS //////////////////////////////////////////////// ////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{ /////////////////////////////////////////////////////////////////////////////{{{
liberator.mappings.add(modes, ["f"], liberator.mappings.add(modes, ["f"],
"Start QuickHint mode", "Start QuickHint mode",
function () { liberator.hints.show(liberator.modes.QUICK_HINT); }); function () { liberator.hints.show(liberator.modes.QUICK_HINT); });

View File

@@ -130,6 +130,6 @@ liberator.config = {
}, true);*/ }, true);*/
} }
} }
} };
// vim: set fdm=marker sw=4 ts=4 et: // vim: set fdm=marker sw=4 ts=4 et: