diff options
| author | Stephen Blott | 2016-03-31 10:20:22 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-31 10:20:26 +0100 | 
| commit | dd04abbfed292d7c73f7c29176dd611107da6805 (patch) | |
| tree | b77b5df67336cf01749b3b47771fa70d29050d90 /lib | |
| parent | 342ec4a2a5a435420b770cec4517e3aa6b31c014 (diff) | |
| download | vimium-dd04abbfed292d7c73f7c29176dd611107da6805.tar.bz2 | |
Fix @suppressEvent and tweak comments.
Diffstat (limited to 'lib')
| -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 ac48e725..c17be24f 100644 --- a/lib/handler_stack.coffee +++ b/lib/handler_stack.coffee @@ -61,14 +61,14 @@ class HandlerStack            return false          else if result == @restartBubbling            return @bubbleEvent type, event -        else if result == @continueBubbling or result -          true # Do nothing, but continue bubbling (for @continueBubbling and all truthy results). +        else if result == @continueBubbling or (result and result != @suppressEvent) +          true # Do nothing, but continue bubbling.          else            # result is @suppressEvent or falsy.            DomUtils.suppressEvent event if @isChromeEvent event            return false -    # None of our handlers want to suppress the event, so pass it to the page. +    # None of our handlers care about this event, so pass it to the page.      true    remove: (id = @currentId) -> | 
