aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2012-05-05 00:16:48 -0700
committerPhil Crosby2012-05-05 18:32:13 -0700
commitafa96f37b345c118f6ffc5d502cd45a57110e61f (patch)
tree5cdcec55bfc54d3a8d97d4c23cfce9d2619efd01
parent9681a747e7cb5ae8d4348188aa82fd2929efb70e (diff)
downloadvimium-afa96f37b345c118f6ffc5d502cd45a57110e61f.tar.bz2
Shorten name of asyncCompletionSource
-rw-r--r--lib/completion.js8
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); },