diff options
| author | Stephen Blott | 2015-05-02 12:14:16 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-02 14:35:49 +0100 | 
| commit | 41495d11e6608767dde299223f10c8a606d4a8fb (patch) | |
| tree | fc9242889c5daa478fa26961dfe108a319b433c3 /lib/utils.coffee | |
| parent | 1257fc7a4fe7b9d0bfe1ad7ab7255f8dba4b988d (diff) | |
| download | vimium-41495d11e6608767dde299223f10c8a606d4a8fb.tar.bz2 | |
Search completion; minor tweaks.
Including:
  - Make completers classes.  That way, we may be able to get better
    code reuse.
Diffstat (limited to 'lib/utils.coffee')
| -rw-r--r-- | lib/utils.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/utils.coffee b/lib/utils.coffee index 338e535d..88fe9e2c 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -202,7 +202,8 @@ class SimpleCache    constructor: (@expiry = 60 * 60 * 1000, @entries = 1000) ->      @cache = {}      @previous = {} -    setInterval (=> @rotate()), @expiry +    rotate = => @rotate() +    setInterval rotate, @expiry    rotate: ->      @previous = @cache @@ -212,7 +213,6 @@ class SimpleCache      (key of @cache) or key of @previous    get: (key) -> -    console.log "get", key      if key of @cache        @cache[key]      else if key of @previous | 
