diff options
| author | Ilya | 2010-01-02 20:29:17 -0800 |
|---|---|---|
| committer | Ilya | 2010-01-02 20:29:17 -0800 |
| commit | 4c788dff756d0e4623b91fd2538a722d00f861fe (patch) | |
| tree | 9b8d9515895c400d5a2b1459a6bfcaa04c8ef78b | |
| parent | 4400b33be71215a26024b29e9f66143dc9a55df9 (diff) | |
| download | vimium-4c788dff756d0e4623b91fd2538a722d00f861fe.tar.bz2 | |
a few style changes per phil's comments
| -rw-r--r-- | background_page.html | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/background_page.html b/background_page.html index 9fc9a059..e57b1601 100644 --- a/background_page.html +++ b/background_page.html @@ -4,7 +4,7 @@ var tabQueue = {}; // windowId -> Array var keyQueue = ""; // Queue of keys typed var validFirstKeys = {}; - var oneKeyCommands = []; + var singleKeyCommands = []; var defaultSettings = { scrollStepSize: 60 }; @@ -269,11 +269,11 @@ } } - function populateOneKeyCommands() { + function populateSingleKeyCommands() { for (var key in keyToCommandRegistry) { if (getActualKeyStrokeLength(key) == 1) - oneKeyCommands.push(key); + singleKeyCommands.push(key); } } @@ -286,7 +286,7 @@ command = splitHash.command; count = splitHash.count; - var completionKeys = oneKeyCommands.slice(0); + var completionKeys = singleKeyCommands.slice(0); if (getActualKeyStrokeLength(command) == 1) { @@ -301,8 +301,7 @@ return completionKeys; } - function splitKeyQueue(queue) - { + function splitKeyQueue(queue) { var match = /([0-9]*)(.*)/.exec(queue); var count = parseInt(match[1]); var command = match[2]; @@ -363,7 +362,7 @@ function init() { populateValidFirstKeys(); - populateOneKeyCommands(); + populateSingleKeyCommands(); } init(); |
