aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorJez Ng2012-09-04 14:57:22 -0400
committerJez Ng2012-09-04 14:57:22 -0400
commit525276bde9b99d05b133f96f21e1ac187c068bb6 (patch)
treec3246ec45e840078aa49277e60f9e318844dd2d5 /background_scripts
parent02a00efb26f8a8590bd44ccae7f47ae4704cc56c (diff)
downloadvimium-525276bde9b99d05b133f96f21e1ac187c068bb6.tar.bz2
More misc cleanups.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 5c10b9ae..707febc9 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -251,13 +251,13 @@ BackgroundCommands =
nextFrame: (count) ->
chrome.tabs.getSelected(null, (tab) ->
frames = framesForTab[tab.id].frames
- curr_index = getCurrFrameIndex(frames)
+ currIndex = getCurrFrameIndex(frames)
# TODO: Skip the "top" frame (which doesn't actually have a <frame> tag),
# since it exists only to contain the other frames.
- new_index = (curr_index + count) % frames.length
+ newIndex = (currIndex + count) % frames.length
- chrome.tabs.sendRequest(tab.id, { name: "focusFrame", frameId: frames[new_index].id, highlight: true }))
+ chrome.tabs.sendRequest(tab.id, { name: "focusFrame", frameId: frames[newIndex].id, highlight: true }))
# Selects a tab before or after the currently selected tab.
# - direction: "next", "previous", "first" or "last".