mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 14:55:46 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -1295,24 +1295,7 @@ var Options = Module("options", {
|
||||
function fmt(value) (typeof value == "number" ? "#" :
|
||||
typeof value == "function" ? "*" :
|
||||
" ") + value;
|
||||
if (!args || args == "g:") {
|
||||
let str =
|
||||
<table>
|
||||
{
|
||||
template.map(globalVariables, function ([i, value]) {
|
||||
return <tr>
|
||||
<td style="width: 200px;">{i}</td>
|
||||
<td>{fmt(value)}</td>
|
||||
</tr>;
|
||||
})
|
||||
}
|
||||
</table>;
|
||||
if (str.text().length() == str.*.length())
|
||||
dactyl.echomsg(_("variable.none"));
|
||||
else
|
||||
dactyl.echo(str, modules.commandline.FORCE_MULTILINE);
|
||||
return;
|
||||
}
|
||||
util.assert(!(!args || args == "g:"));
|
||||
|
||||
let matches = args.match(/^([a-z]:)?([\w]+)(?:\s*([-+.])?=\s*(.*)?)?$/);
|
||||
if (matches) {
|
||||
|
||||
Reference in New Issue
Block a user