diff options
| author | jez | 2011-01-31 13:25:02 +0800 | 
|---|---|---|
| committer | jez | 2011-01-31 15:24:08 +0800 | 
| commit | f8325f4de43121c81d17d3afcb93a647c28ae0d6 (patch) | |
| tree | 84691042701520d708a7c251c1c7327cf9542f44 /linkHints.js | |
| parent | d4238b381d49b4e52c94d46f4be92eea30e0a3c6 (diff) | |
| download | vimium-f8325f4de43121c81d17d3afcb93a647c28ae0d6.tar.bz2 | |
deactivateMode should always invoke the callback passed to it.
Diffstat (limited to 'linkHints.js')
| -rw-r--r-- | linkHints.js | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/linkHints.js b/linkHints.js index de498fbe..cbff300f 100644 --- a/linkHints.js +++ b/linkHints.js @@ -309,10 +309,12 @@ var linkHints = {      }      // we invoke the deactivate() function directly instead of using setTimeout(callback, 0) so that      // deactivateMode can be tested synchronously -    if (!delay) +    if (!delay) {        deactivate(); -    else +      if (callback) callback(); +    } else {        setTimeout(function() { deactivate(); if (callback) callback(); }, delay); +    }    },    /* | 
