diff options
| author | Phil Crosby | 2012-05-28 20:55:44 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-05-28 20:55:44 -0700 |
| commit | 0a3cf32c88f3b96a1ac339d03196964a1180d44d (patch) | |
| tree | f6d651dbe5417e7e4a51f697c0ac10b2606ef8df | |
| parent | c676c1e533c0b193450a262544ae115f6710151d (diff) | |
| download | vimium-0a3cf32c88f3b96a1ac339d03196964a1180d44d.tar.bz2 | |
Remove maxresults option, which isn't currently used.
| -rw-r--r-- | content_scripts/vomnibar.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/content_scripts/vomnibar.js b/content_scripts/vomnibar.js index 0144f87a..97f8b1c1 100644 --- a/content_scripts/vomnibar.js +++ b/content_scripts/vomnibar.js @@ -14,7 +14,7 @@ var vomnibar = (function() { function activate(completerName, refreshInterval, initialQueryValue) { var completer = getCompleter(completerName); if (!vomnibarUI) - vomnibarUI = new VomnibarUI(10); + vomnibarUI = new VomnibarUI(); completer.refresh(); vomnibarUI.setCompleter(completer); vomnibarUI.setRefreshInterval(refreshInterval); @@ -26,9 +26,8 @@ var vomnibar = (function() { /** User interface for fuzzy completion */ var VomnibarUI = Class.extend({ - init: function(maxResults) { + init: function() { this.prompt = '>'; - this.maxResults = maxResults; this.refreshInterval = 0; this.initDom(); }, @@ -125,7 +124,7 @@ var vomnibar = (function() { updateCompletions: function(callback) { query = this.input.value.replace(/^\s*/, ""); - this.completer.filter(query, this.maxResults, function(completions) { + this.completer.filter(query, function(completions) { this.completions = completions; this.populateUiWithCompletions(completions); if (callback) callback(); @@ -191,7 +190,7 @@ var vomnibar = (function() { refresh: function() { chrome.extension.sendRequest({ handler: "refreshCompleter", name: this.name }); }, - filter: function(query, maxResults, callback) { + filter: function(query, callback) { var id = utils.createUniqueId(); this.filterPort.onMessage.addListener(function(msg) { if (msg.id != id) return; @@ -205,7 +204,7 @@ var vomnibar = (function() { }); callback(results); }); - this.filterPort.postMessage({ id: id, name: this.name, query: query, maxResults: maxResults }); + this.filterPort.postMessage({ id: id, name: this.name, query: query }); } }); |
