From dd04abbfed292d7c73f7c29176dd611107da6805 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 31 Mar 2016 10:20:22 +0100 Subject: Fix @suppressEvent and tweak comments. --- lib/handler_stack.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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) -> -- cgit v1.2.3