1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:22:26 +01:00

I cant sleep.

This commit is contained in:
Kris Maglione
2008-10-02 07:04:31 +00:00
parent c37500251a
commit 9d370cfc89
3 changed files with 17 additions and 14 deletions

View File

@@ -269,16 +269,19 @@ liberator.Options = function () //{{{
if (!args)
{
XML.prettyPrinting = false;
var str = <></>;
var str = <table/>
for (let [i, value] in Iterator(liberator.globalVariables))
{
let prefix = typeof value == "number" ? "#" :
typeof value == "function" ? "*" :
" ";
str += <tr><td style="width: 200px;">{i}</td><td>{prefix}{value}</td></tr>;
str.* += <tr>
<td style="width: 200px;">{i}</td>
<td>{prefix}{value}</td>
</tr>;
}
if (str.length())
liberator.echo(<table>{str}</table>, liberator.commandline.FORCE_MULTILINE);
if (str.*.length())
liberator.echo(str, liberator.commandline.FORCE_MULTILINE);
else
liberator.echo("No variables found");
return;