From 45b2674e461659327f8e41ba10035abddde29b26 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 4 Jan 2015 15:26:32 +0000 Subject: Modes; comment tweeks. --- 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 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 -- cgit v1.2.3