From 2d047e7ee7e77a02ccb29658ada953a092cee20a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 1 Jan 2015 12:02:16 +0000 Subject: Modes; implement insert mode. --- lib/handler_stack.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/handler_stack.coffee') diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee index 886a9ece..6f599dc7 100644 --- a/lib/handler_stack.coffee +++ b/lib/handler_stack.coffee @@ -7,7 +7,7 @@ class HandlerStack @counter = 0 @passThrough = new Object() # Used only as a constant, distinct from any other value. - genId: -> @counter = ++@counter & 0xffff + genId: -> @counter = ++@counter # Adds a handler to the stack. Returns a unique ID for that handler that can be used to remove it later. push: (handler) -> -- cgit v1.2.3