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:
@@ -312,7 +312,7 @@ liberator.Completion = function () //{{{
|
|||||||
"var comp = [];" +
|
"var comp = [];" +
|
||||||
"var type = '';" +
|
"var type = '';" +
|
||||||
"var value = '';" +
|
"var value = '';" +
|
||||||
"var obj = eval('with(liberator){" + objects[o] + "}');" +
|
"var obj = eval('with (liberator) {" + objects[o] + "}');" +
|
||||||
"for (var i in obj) {" +
|
"for (var i in obj) {" +
|
||||||
" try { type = typeof(obj[i]); } catch (e) { type = 'unknown type'; };" +
|
" try { type = typeof(obj[i]); } catch (e) { type = 'unknown type'; };" +
|
||||||
" if (type == 'number' || type == 'string' || type == 'boolean') {" +
|
" if (type == 'number' || type == 'string' || type == 'boolean') {" +
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ liberator.Hints = function () //{{{
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
|
var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
|
||||||
|
|
||||||
var submode = ""; // used for extended mode, can be "o", "t", "y", etc.
|
var submode = ""; // used for extended mode, can be "o", "t", "y", etc.
|
||||||
@@ -183,7 +184,7 @@ liberator.Hints = function () //{{{
|
|||||||
span = hints[i][2];
|
span = hints[i][2];
|
||||||
imgspan = hints[i][3];
|
imgspan = hints[i][3];
|
||||||
|
|
||||||
if (! validHint(text))
|
if (!validHint(text))
|
||||||
{
|
{
|
||||||
span.style.display = "none";
|
span.style.display = "none";
|
||||||
if (imgspan)
|
if (imgspan)
|
||||||
@@ -471,7 +472,7 @@ liberator.Hints = function () //{{{
|
|||||||
|
|
||||||
if (prevCharIdx == charIdx)
|
if (prevCharIdx == charIdx)
|
||||||
{
|
{
|
||||||
if (! allowWordOverleaping)
|
if (!allowWordOverleaping)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -499,7 +500,7 @@ liberator.Hints = function () //{{{
|
|||||||
strIdx++;
|
strIdx++;
|
||||||
else if (word.indexOf(str) == 0)
|
else if (word.indexOf(str) == 0)
|
||||||
strIdx++;
|
strIdx++;
|
||||||
else if (! allowWordOverleaping)
|
else if (!allowWordOverleaping)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (strIdx == strings.length)
|
if (strIdx == strings.length)
|
||||||
|
|||||||
@@ -587,7 +587,7 @@ lookup:
|
|||||||
// handle pure javascript files specially
|
// handle pure javascript files specially
|
||||||
if (/\.js$/.test(filename))
|
if (/\.js$/.test(filename))
|
||||||
{
|
{
|
||||||
eval("with(liberator){" + str + "}");
|
eval("with (liberator) {" + str + "}");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -599,7 +599,7 @@ lookup:
|
|||||||
{
|
{
|
||||||
if (heredocEnd.test(line))
|
if (heredocEnd.test(line))
|
||||||
{
|
{
|
||||||
eval("with(liberator){" + heredoc + "}");
|
eval("with (liberator) {" + heredoc + "}");
|
||||||
heredoc = "";
|
heredoc = "";
|
||||||
heredocEnd = null;
|
heredocEnd = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("with(liberator) {" + args + "}");
|
eval("with (liberator) {" + args + "}");
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
@@ -352,7 +352,7 @@ const liberator = (function () //{{{
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
while (i--)
|
while (i--)
|
||||||
eval("with(liberator) {" + args + "}");
|
eval("with (liberator) {" + args + "}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (special)
|
if (special)
|
||||||
@@ -398,7 +398,7 @@ const liberator = (function () //{{{
|
|||||||
if (args && args[0] == ":")
|
if (args && args[0] == ":")
|
||||||
liberator.execute(args);
|
liberator.execute(args);
|
||||||
else
|
else
|
||||||
eval("with(liberator){" + args + "}");
|
eval("with (liberator) {" + args + "}");
|
||||||
|
|
||||||
if (special)
|
if (special)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ liberator.CommandLine = function () //{{{
|
|||||||
{
|
{
|
||||||
// TODO: move to liberator.eval()?
|
// TODO: move to liberator.eval()?
|
||||||
// with (liberator) means, liberator is the default namespace "inside" eval
|
// with (liberator) means, liberator is the default namespace "inside" eval
|
||||||
arg = eval("with(liberator){" + arg + "}");
|
arg = eval("with (liberator) {" + arg + "}");
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user