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

fix some arg redeclarations

This commit is contained in:
Doug Kearns
2008-09-28 12:51:53 +00:00
parent dfb86f7471
commit c076c8be0f
6 changed files with 11 additions and 11 deletions

View File

@@ -496,15 +496,14 @@ liberator.Bookmarks = function () //{{{
if (openItems)
return liberator.open([i[0] for each (i in items)], liberator.NEW_TAB);
var title, url, tags, keyword, extra;
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
"<table><tr class=\"hl-Title\" align=\"left\"><th>title</th><th>URL</th></tr>";
for (let i = 0; i < items.length; i++)
{
title = liberator.util.escapeHTML(liberator.util.clip(items[i][1], 50));
url = liberator.util.escapeHTML(items[i][0]);
keyword = items[i][2];
tags = items[i][3].join(", ");
let title = liberator.util.escapeHTML(liberator.util.clip(items[i][1], 50));
let url = liberator.util.escapeHTML(items[i][0]);
let keyword = items[i][2];
let tags = items[i][3].join(", ");
extra = "";
if (keyword)

View File

@@ -1368,7 +1368,8 @@ liberator.Buffer = function () //{{{
// url is optional
viewSource: function (url, useExternalEditor)
{
var url = url || liberator.buffer.URL;
url = url || liberator.buffer.URL;
if (useExternalEditor)
{
// TODO: make that a helper function

View File

@@ -211,7 +211,7 @@ liberator.Commands = function () //{{{
addUserCommand: function (names, description, action, extra, replace)
{
var extra = extra || {};
extra = extra || {};
extra.isUserCommand = true;
description = description || "User defined command";

View File

@@ -151,8 +151,8 @@ liberator.Editor = function () //{{{
// mode = "i" -> add :iabbrev, :iabclear and :iunabbrev commands
function addAbbreviationCommands(ch, modeDescription)
{
var modeDescription = modeDescription ? " in " + modeDescription + " mode" : "";
var mode = ch || "!";
modeDescription = modeDescription ? " in " + modeDescription + " mode" : "";
liberator.commands.add([ch ? ch + "a[bbrev]" : "ab[breviate]"],
"Abbreviate a key sequence" + modeDescription,

View File

@@ -198,7 +198,7 @@ liberator.Mappings = function () //{{{
}
}
var modeDescription = modeDescription ? " in " + modeDescription + " mode" : "";
modeDescription = modeDescription ? " in " + modeDescription + " mode" : "";
liberator.commands.add([ch ? ch + "m[ap]" : "map"],
"Map a key sequence" + modeDescription,

View File

@@ -112,8 +112,8 @@ liberator.Option = function (names, description, type, defaultValue, extraInfo)
if (this.setter)
{
var tmpValue = newValue;
var newValue = this.setter.call(this, newValue);
let tmpValue = newValue;
newValue = this.setter.call(this, newValue);
if (typeof newValue == "undefined")
{