aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2012-04-29 22:05:56 -0700
committerPhil Crosby2012-04-29 22:05:56 -0700
commit8aaaf297fef5ff311cc570d6c036b50cbbce2e9c (patch)
tree2b2445e152b7e33ac4c3a39b78c64e99db028bf7
parent7b4225050d34dd1a58fe20b782c81c90bcf0d0e9 (diff)
downloadvimium-8aaaf297fef5ff311cc570d6c036b50cbbce2e9c.tar.bz2
use consistent quotes
-rw-r--r--fuzzyMode.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/fuzzyMode.js b/fuzzyMode.js
index 4d5d176d..8667d467 100644
--- a/fuzzyMode.js
+++ b/fuzzyMode.js
@@ -37,20 +37,20 @@ var fuzzyMode = (function() {
},
show: function() {
- this.box.style.display = 'block';
+ this.box.style.display = "block";
this.input.focus();
handlerStack.push({ keydown: this.onKeydown.bind(this) });
},
hide: function() {
- this.box.style.display = 'none';
- this.completionList.style.display = 'none';
+ this.box.style.display = "none";
+ this.completionList.style.display = "none";
this.input.blur();
handlerStack.pop();
},
reset: function() {
- this.input.value = '';
+ this.input.value = "";
this.updateTimer = null;
this.completions = [];
this.selection = 0;
@@ -61,7 +61,7 @@ var fuzzyMode = (function() {
if (this.completions.length > 0)
this.selection = Math.min(this.selection, this.completions.length - 1);
for (var i = 0; i < this.completionList.children.length; ++i)
- this.completionList.children[i].className = (i == this.selection) ? 'selected' : '';
+ this.completionList.children[i].className = (i == this.selection) ? "selected" : "";
},
onKeydown: function(event) {
@@ -86,7 +86,7 @@ var fuzzyMode = (function() {
}
// refresh with F5
- else if (keyChar == 'f5') {
+ else if (keyChar == "f5") {
this.completer.refresh();
this.update(true); // force immediate update
}
@@ -112,17 +112,17 @@ var fuzzyMode = (function() {
updateCompletions: function(callback) {
var self = this;
- query = this.input.value.replace(/^\s*/, '');
+ query = this.input.value.replace(/^\s*/, "");
this.completer.filter(query, this.maxResults, function(completions) {
self.completions = completions;
// update completion list with the new data
self.completionList.innerHTML = completions.map(function(completion) {
- return '<li>' + completion.html + '</li>';
+ return "<li>" + completion.html + "</li>";
}).join('');
- self.completionList.style.display = self.completions.length > 0 ? 'block' : 'none';
+ self.completionList.style.display = self.completions.length > 0 ? "block" : "none";
self.updateSelection();
if (callback) callback();
});
@@ -163,15 +163,15 @@ var fuzzyMode = (function() {
this.input = document.querySelector("#fuzzybox .query");
this.input.addEventListener("input", function() { this.update(); }.bind(this));
this.completionList = document.querySelector("#fuzzybox ul");
- this.completionList.style.display = 'none';
+ this.completionList.style.display = "none";
},
}
// public interface
return {
- activateAll: function() { start('omni', false, 100); },
- activateAllNewTab: function() { start('omni', true, 100); },
- activateTabs: function() { start('tabs', false, 0); },
+ activateAll: function() { start("omni", false, 100); },
+ activateAllNewTab: function() { start("omni", true, 100); },
+ activateTabs: function() { start("tabs", false, 0); },
}
})();