diff options
| author | Stephen Blott | 2015-01-18 15:10:49 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-18 15:10:49 +0000 |
| commit | d8f2446261887cb9affc50caf27b5793f0339edc (patch) | |
| tree | 87b03c9ab8c40a9b7f6062f2141ff7cea0e96d6a /content_scripts | |
| parent | f60a7073b0b9d908f72020f9239be0e1e5213a9a (diff) | |
| download | vimium-d8f2446261887cb9affc50caf27b5793f0339edc.tar.bz2 | |
Give focusInput a memory (fix typo).
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index abcf2b36..8b73c766 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -342,7 +342,7 @@ getFocusedElementIndexByRecency = do -> window.resetFocusInputFocusedElement = -> focusedElement = null - (elements = null) -> + (elements) -> Math.max 0, elements.indexOf focusedElement extend window, |
