aboutsummaryrefslogtreecommitdiffstats
path: root/lib/handler_stack.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handler_stack.coffee')
-rw-r--r--lib/handler_stack.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee
index 718bee9d..97e189c5 100644
--- a/lib/handler_stack.coffee
+++ b/lib/handler_stack.coffee
@@ -58,10 +58,10 @@ class HandlerStack
@stack.splice(i, 1)
break
- # The handler stack handles chrome events (which may need to be suppressed) and internal (fake) events.
- # This checks whether that the event at hand is a chrome event.
+ # The handler stack handles chrome events (which may need to be suppressed) and internal (pseudo) events.
+ # This checks whether the event at hand is a chrome event.
isChromeEvent: (event) ->
- event?.preventDefault? and event?.stopImmediatePropagation?
+ event?.preventDefault? or event?.stopImmediatePropagation?
# Convenience wrappers.
alwaysContinueBubbling: (handler) ->