diff options
| author | jez | 2011-05-14 17:40:45 -0400 | 
|---|---|---|
| committer | jez | 2011-05-14 17:41:52 -0400 | 
| commit | 6534e0fc55d18fc9011576b4c63cfbd45ce18649 (patch) | |
| tree | 67675e7c6ca5b7a9137004f03a3392238cf5b2c3 /linkHints.js | |
| parent | 94ca405e46bb8e92aaf94f0c5be969303d45000d (diff) | |
| download | vimium-6534e0fc55d18fc9011576b4c63cfbd45ce18649.tar.bz2 | |
Add comment about caching hintString.length.
Done with reference to commit bcf01ad7ec356c62cb1f8c0efcd83cd26c2d8a86.
Diffstat (limited to 'linkHints.js')
| -rw-r--r-- | linkHints.js | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/linkHints.js b/linkHints.js index f20a8e8e..f9a60857 100644 --- a/linkHints.js +++ b/linkHints.js @@ -347,6 +347,7 @@ var alphabetHints = {      } while (number > 0);      // Pad the hint string we're returning so that it matches numHintDigits. +    // Note: the loop body changes hintString.length, so the original length must be cached!      var hintStringLength = hintString.length;      for (var i = 0; i < numHintDigits - hintStringLength; i++)        hintString.unshift(settings.get('linkHintCharacters')[0]); | 
