1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 00:32:27 +01:00

Fix url completer args.

Fixes issue #1053.
This commit is contained in:
Doug Kearns
2013-09-09 03:10:07 +10:00
parent a1a1b03e64
commit 595409ea07

View File

@@ -987,10 +987,10 @@ var Completion = Module("completion", {
}, this);
},
addUrlCompleter: function addUrlCompleter(opt, ...args) {
let completer = Completion.UrlCompleter.apply(null, [opt, ...args]);
addUrlCompleter: function addUrlCompleter(name, description, completer, ...args) {
let completer = Completion.UrlCompleter(name, description, completer);
completer.args = args;
this.urlCompleters[opt] = completer;
this.urlCompleters[name] = completer;
},
autocomplete: curry(function autocomplete(provider, context) {