aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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