1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:27:58 +01:00

More, more, more of the same.

This commit is contained in:
Kris Maglione
2008-10-01 04:21:01 +00:00
parent bda94a3421
commit cc27911a60
4 changed files with 41 additions and 40 deletions

View File

@@ -289,16 +289,13 @@ liberator.Options = function () //{{{
{
if (!args)
{
XML.prettyPrinting = false;
var str = <></>;
for (let [i, value] in Iterator(liberator.globalVariables))
{
if (typeof value == "number")
var prefix = "#";
else if (typeof value == "function")
var prefix = "*";
else
var prefix = "";
let prefix = typeof value == "number" ? "#" :
typeof value == "function" ? "*" :
" ";
str += <tr><td style="width: 200px;">{i}</td><td>{prefix}{value}</td></tr>;
}
if (str.length())
@@ -362,12 +359,9 @@ liberator.Options = function () //{{{
}
var value = reference[0][reference[1]];
if (typeof value == "number")
var prefix = "#";
else if (typeof value == "function")
var prefix = "*";
else
var prefix = "";
let prefix = typeof value == "number" ? "#" :
typeof value == "function" ? "*" :
" ";
liberator.echo(reference[1] + "\t\t" + prefix + value);
}
});