diff options
| author | Phil Crosby | 2009-12-30 11:52:16 -0500 |
|---|---|---|
| committer | Phil Crosby | 2009-12-30 11:52:16 -0500 |
| commit | b1f850addfc2f310b7123493e382c418cc8ec355 (patch) | |
| tree | 3e4db95a9c32450563dbf43306ce494f011f0b2a /background_page.html | |
| parent | 1f6f81d0f8b3f185fdb32a85861b2ebe827d51ca (diff) | |
| download | vimium-b1f850addfc2f310b7123493e382c418cc8ec355.tar.bz2 | |
Remove some unnecessary indentation
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/background_page.html b/background_page.html index 6b957864..a388cd27 100644 --- a/background_page.html +++ b/background_page.html @@ -5,15 +5,17 @@ var keyQueue = ""; // Queue of keys typed var validFirstKeys = {}; - var defaultSettings = { "scrollStepSize": 60 }; + var defaultSettings = { scrollStepSize: 60 }; // Port handler mapping - var portHandlers = { "keyDown": handleKeyDown, - "returnScrollPosition": handleReturnScrollPosition, - "getCurrentTabUrl": getCurrentTabUrl, - "getZoomLevel": getZoomLevel, - "saveZoomLevel": saveZoomLevel, - "getSetting": getSetting}; + var portHandlers = { + keyDown: handleKeyDown, + returnScrollPosition: handleReturnScrollPosition, + getCurrentTabUrl: getCurrentTabUrl, + getZoomLevel: getZoomLevel, + saveZoomLevel: saveZoomLevel, + getSetting: getSetting + }; // Event handlers var selectionChangedHandlers = []; @@ -137,20 +139,20 @@ function removeTab(callback) { getCurrentTabWithScrollPosition(function(tab, scrollX, scrollY) { - var tabQueueEntry = { tabUrl: tab.url, - scrollX: scrollX, - scrollY: scrollY }; - - if (tabQueue[tab.windowId]) - tabQueue[tab.windowId].push(tabQueueEntry); - else - tabQueue[tab.windowId] = [tabQueueEntry]; - - chrome.tabs.remove(tab.id); - // We can't just call the callback here because we actually need to wait - // for the selection to change to consider this action done. - selectionChangedHandlers.push(callback); - }); + var tabQueueEntry = { tabUrl: tab.url, + scrollX: scrollX, + scrollY: scrollY }; + + if (tabQueue[tab.windowId]) + tabQueue[tab.windowId].push(tabQueueEntry); + else + tabQueue[tab.windowId] = [tabQueueEntry]; + + chrome.tabs.remove(tab.id); + // We can't just call the callback here because we actually need to wait + // for the selection to change to consider this action done. + selectionChangedHandlers.push(callback); + }); } function restoreTab(callback) { @@ -271,11 +273,5 @@ init(); </script> - </head> - -<body> - howdy -</body> - -</html> +</html>
\ No newline at end of file |
