1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 16:04:12 +01:00

Added :sty chrome to style the main window, moved a bunch of inline styles to CSS, fixed some completion bugs, removed util.blankDocument

This commit is contained in:
Kris Maglione
2008-10-05 23:38:31 +00:00
parent 2be0219384
commit 0a8252fb2a
10 changed files with 143 additions and 99 deletions

View File

@@ -454,9 +454,9 @@ const liberator = (function () //{{{
<tr class="hl-Title" align="left">
<th colspan="3">Code execution summary</th>
</tr>
<tr><td>  Executed:</td><td align="right"><span style="color: green">{count}</span></td><td>times</td></tr>
<tr><td>  Average time:</td><td align="right"><span style="color: green">{each.toFixed(2)}</span></td><td>{eachUnits}</td></tr>
<tr><td>  Total time:</td><td align="right"><span style="color: red">{total.toFixed(2)}</span></td><td>{totalUnits}</td></tr>
<tr><td>  Executed:</td><td align="right"><span class="times-executed">{count}</span></td><td>times</td></tr>
<tr><td>  Average time:</td><td align="right"><span class="time-average">{each.toFixed(2)}</span></td><td>{eachUnits}</td></tr>
<tr><td>  Total time:</td><td align="right"><span class="time-total">{total.toFixed(2)}</span></td><td>{totalUnits}</td></tr>
</table>);
liberator.commandline.echo(str, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
}
@@ -685,6 +685,18 @@ const liberator = (function () //{{{
dump(liberator.config.name.toLowerCase() + ": " + message);
},
dumpStack: function (msg)
{
try
{
someStatisticallyImprobableVariableName.foo = 1;
}
catch (e)
{
liberator.dump((msg || "") + e.stack);
}
},
// with (liberator) means, liberator is the default namespace "inside" eval
eval: function (str)
{