diff options
| author | Stephen Blott | 2015-01-04 15:26:32 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-04 15:26:32 +0000 |
| commit | 45b2674e461659327f8e41ba10035abddde29b26 (patch) | |
| tree | d7214761fff9e5c546c0f81b7d68242881bde834 | |
| parent | 7e4fdac07ffb59c438a17c2c88051064aaab16b5 (diff) | |
| download | vimium-45b2674e461659327f8e41ba10035abddde29b26.tar.bz2 | |
Modes; comment tweeks.
| -rw-r--r-- | lib/handler_stack.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee index c8e9a035..17e4844b 100644 --- a/lib/handler_stack.coffee +++ b/lib/handler_stack.coffee @@ -41,12 +41,12 @@ class HandlerStack remove: (id = @currentId) -> if 0 < @stack.length and @stack[@stack.length-1].id == id - # A common case is to remove the handler at the top of the stack. And we can this very efficiently. + # A common case is to remove the handler at the top of the stack. And we can do this very efficiently. # Tests suggest that this case arises more than half of the time. @stack.pop().id = null else - # Otherwise, we'll build a new stack. This is better than splicing the existing stack since at can't - # interfere with any concurrent bubbleEvent. + # Otherwise, we'll build a new stack. This is better than splicing the existing stack since that can + # interfere with concurrent bubbleEvents. @stack = @stack.filter (handler) -> # Mark this handler as removed (for any active bubbleEvent call). handler.id = null if handler.id == id |
