diff options
| author | mrmr1993 | 2014-11-22 14:50:52 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-11-22 14:50:52 +0000 |
| commit | 24486c68d96f25030ecb97535647f78a7d9355a6 (patch) | |
| tree | 0a1a316fa07ccc26fe591f7a81699e50ef7eb13b /background_scripts | |
| parent | 0bf4c19a10f928b205e4656292ac857698538b1d (diff) | |
| download | vimium-24486c68d96f25030ecb97535647f78a7d9355a6.tar.bz2 | |
Merge two assignments of the same value
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 8efd1687..8883221a 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -286,8 +286,7 @@ class TabRecency if @lastVisitedTime? and currentTime - @lastVisitedTime >= @timeDelta @cache[@lastVisited] = ++@timestamp - @current = tabId - @lastVisited = tabId + @current = @lastVisited = tabId # If the tab we were previously on has gone away (or never existed if this is the first tab), then make # this one registers as soon as it's blurred. @lastVisitedTime = if @lastVisitedTime? then currentTime else new Date(currentTime - @timeDelta) |
