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

whitespace fixes

This commit is contained in:
Doug Kearns
2008-08-21 22:31:06 +00:00
parent 37a2aa50fb
commit dee53e3b9f
5 changed files with 11 additions and 10 deletions

View File

@@ -312,7 +312,7 @@ liberator.Completion = function () //{{{
"var comp = [];" +
"var type = '';" +
"var value = '';" +
"var obj = eval('with(liberator){" + objects[o] + "}');" +
"var obj = eval('with (liberator) {" + objects[o] + "}');" +
"for (var i in obj) {" +
" try { type = typeof(obj[i]); } catch (e) { type = 'unknown type'; };" +
" if (type == 'number' || type == 'string' || type == 'boolean') {" +

View File

@@ -31,6 +31,7 @@ liberator.Hints = function () //{{{
////////////////////////////////////////////////////////////////////////////////
////////////////////// PRIVATE SECTION /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
var submode = ""; // used for extended mode, can be "o", "t", "y", etc.
@@ -183,7 +184,7 @@ liberator.Hints = function () //{{{
span = hints[i][2];
imgspan = hints[i][3];
if (! validHint(text))
if (!validHint(text))
{
span.style.display = "none";
if (imgspan)
@@ -471,7 +472,7 @@ liberator.Hints = function () //{{{
if (prevCharIdx == charIdx)
{
if (! allowWordOverleaping)
if (!allowWordOverleaping)
return false;
}
else
@@ -499,7 +500,7 @@ liberator.Hints = function () //{{{
strIdx++;
else if (word.indexOf(str) == 0)
strIdx++;
else if (! allowWordOverleaping)
else if (!allowWordOverleaping)
return false;
if (strIdx == strings.length)

View File

@@ -587,7 +587,7 @@ lookup:
// handle pure javascript files specially
if (/\.js$/.test(filename))
{
eval("with(liberator){" + str + "}");
eval("with (liberator) {" + str + "}");
}
else
{
@@ -599,7 +599,7 @@ lookup:
{
if (heredocEnd.test(line))
{
eval("with(liberator){" + heredoc + "}");
eval("with (liberator) {" + heredoc + "}");
heredoc = "";
heredocEnd = null;
}

View File

@@ -293,7 +293,7 @@ const liberator = (function () //{{{
{
try
{
eval("with(liberator) {" + args + "}");
eval("with (liberator) {" + args + "}");
}
catch (e)
{
@@ -352,7 +352,7 @@ const liberator = (function () //{{{
else
{
while (i--)
eval("with(liberator) {" + args + "}");
eval("with (liberator) {" + args + "}");
}
if (special)
@@ -398,7 +398,7 @@ const liberator = (function () //{{{
if (args && args[0] == ":")
liberator.execute(args);
else
eval("with(liberator){" + args + "}");
eval("with (liberator) {" + args + "}");
if (special)
return;

View File

@@ -261,7 +261,7 @@ liberator.CommandLine = function () //{{{
{
// TODO: move to liberator.eval()?
// with (liberator) means, liberator is the default namespace "inside" eval
arg = eval("with(liberator){" + arg + "}");
arg = eval("with (liberator) {" + arg + "}");
}
catch (e)
{