summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2009-05-22 13:59:10 -0400
committerKris Maglione <maglione.k@gmail.com>2009-05-22 13:59:10 -0400
commitb74df73c854ac4dde2fde5d69860e95183ee5f5b (patch)
treede4af1dada1551d6d7605a67525f82c014d5ca67
parente9fc3327ed6db07212079e7646404d5afe62e724 (diff)
downloadpentadactyl-b74df73c854ac4dde2fde5d69860e95183ee5f5b.tar.gz
More sanity in completion changes in last commit.
-rw-r--r--common/content/completion.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/common/content/completion.js b/common/content/completion.js
index 7a319c6a..0eabbc15 100644
--- a/common/content/completion.js
+++ b/common/content/completion.js
@@ -339,12 +339,8 @@ 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;
+ if (typeof v == "string" && /^[.[]/.test(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