diff options
| author | mrmr1993 | 2014-11-22 14:52:59 +0000 | 
|---|---|---|
| committer | mrmr1993 | 2014-11-22 14:52:59 +0000 | 
| commit | 5534830b0578e4ae28c637505a1a29d22da17fbd (patch) | |
| tree | 62c5e496cfdeb31c2a1288a2594001d65e584adb | |
| parent | 24486c68d96f25030ecb97535647f78a7d9355a6 (diff) | |
| download | vimium-5534830b0578e4ae28c637505a1a29d22da17fbd.tar.bz2 | |
Stop registering tabs active for <500ms in special circumstances
| -rw-r--r-- | background_scripts/completion.coffee | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 8883221a..dc24ebb7 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -287,9 +287,7 @@ class TabRecency        @cache[@lastVisited] = ++@timestamp      @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) +    @lastVisitedTime = currentTime    remove: (tabId) ->      if tabId == @lastVisited | 
