diff options
| author | Phil Crosby | 2012-05-05 00:16:48 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-05-05 18:32:13 -0700 |
| commit | afa96f37b345c118f6ffc5d502cd45a57110e61f (patch) | |
| tree | 5cdcec55bfc54d3a8d97d4c23cfce9d2619efd01 /lib | |
| parent | 9681a747e7cb5ae8d4348188aa82fd2929efb70e (diff) | |
| download | vimium-afa96f37b345c118f6ffc5d502cd45a57110e61f.tar.bz2 | |
Shorten name of asyncCompletionSource
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/completion.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/completion.js b/lib/completion.js index fe616d44..abd71afa 100644 --- a/lib/completion.js +++ b/lib/completion.js @@ -2,7 +2,7 @@ var completion = (function() { /** Helper class to construct fuzzy completers for asynchronous data sources like history or bookmark * matchers. */ - var AsyncCompletionSource = Class.extend({ + var AsyncCompleter = Class.extend({ init: function() { this.id = utils.createUniqueId(); this.reset(); @@ -115,7 +115,7 @@ var completion = (function() { /** A fuzzy bookmark completer */ var FuzzyBookmarkCompletionSource = Class.extend({ - init: function() { this.asyncCompleter = new AsyncCompletionSource(); }, + init: function() { this.asyncCompleter = new AsyncCompleter(); }, filter: function(query, callback) { return this.asyncCompleter.filter(query, callback); }, // Traverses the bookmark hierarhcy and retuns a list of all bookmarks in the tree. @@ -147,7 +147,7 @@ var completion = (function() { /** A fuzzy history completer */ var FuzzyHistoryCompletionSource = Class.extend({ init: function(maxResults) { - this.asyncCompleter = new AsyncCompletionSource(); + this.asyncCompleter = new AsyncCompleter(); this.maxResults = maxResults; }, @@ -166,7 +166,7 @@ var completion = (function() { /** A fuzzy tab completer */ var FuzzyTabCompletionSource = Class.extend({ - init: function() { this.asyncCompleter = new AsyncCompletionSource(); }, + init: function() { this.asyncCompleter = new AsyncCompleter(); }, filter: function(query, callback) { return this.asyncCompleter.filter(query, callback); }, |
