diff options
author | anekos <anekos@snca.net> | 2009-11-28 08:45:23 +0900 |
---|---|---|
committer | anekos <anekos@snca.net> | 2009-11-28 08:45:23 +0900 |
commit | c3ec6fff4af9bff844d3ae84bc164bd4184fe811 (patch) | |
tree | 19fb4fca8059588fca889c95a0bcd31e0ee22a95 | |
parent | 78308e24836cff6bf0194093fbe23f45f5a5628e (diff) | |
download | pentadactyl-c3ec6fff4af9bff844d3ae84bc164bd4184fe811.tar.gz |
Fix: completion.url
completion.url(foo, "") misuse option["complete"].
-rwxr-xr-x[-rw-r--r--] | common/content/completion.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/content/completion.js b/common/content/completion.js index 16aa7398..ed7e3cfd 100644..100755 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -682,8 +682,11 @@ const Completion = Module("completion", { if (skip) context.advance(skip[0].length); + if (typeof complete === "undefined") + complete = options["complete"]; + // Will, and should, throw an error if !(c in opts) - Array.forEach(complete || options["complete"], function (c) { + Array.forEach(complete, function (c) { let completer = completion.urlCompleters[c]; context.fork.apply(context, [c, 0, completion, completer.completer].concat(completer.args)); }); |