1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 13:02:26 +01:00

Make :undo a bit saner. Add TODO about config.name checks.

This commit is contained in:
Kris Maglione
2009-05-22 13:55:22 -04:00
parent 491d17a4a0
commit e9fc3327ed
9 changed files with 30 additions and 29 deletions

View File

@@ -339,6 +339,12 @@ CompletionContext.prototype = {
{
let [k, v] = i;
let _k = "_" + k;
if (typeof v == "string" && !/^[a-z_$][0-9a-z_$]*$/i.test(v))
{
if (!/[.[]/.test(v[0]))
v = "." + v;
v = eval("(function(i) i" + v + ")")
}
if (typeof v == "function")
res.__defineGetter__(k, function () _k in this ? this[_k] : (this[_k] = v(this.item)));
else