aboutsummaryrefslogtreecommitdiffstats
path: root/lib/handler_stack.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-02-01 15:48:54 +0000
committerStephen Blott2015-02-01 15:48:54 +0000
commita9b8c4cdc176889c8ef442711109a9b5f4334c16 (patch)
treebe69020dd730339135510e54eebc450994d86f50 /lib/handler_stack.coffee
parent68e4aa3931babdf97c5f12dc5f655415e2073402 (diff)
parent7939b69ffc2880ff4590d1c8dcfd5eb7492200fd (diff)
downloadvimium-a9b8c4cdc176889c8ef442711109a9b5f4334c16.tar.bz2
Merge branch 'modes-rework-dom-tests'
Diffstat (limited to 'lib/handler_stack.coffee')
-rw-r--r--lib/handler_stack.coffee5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee
index 76d835b7..3d635005 100644
--- a/lib/handler_stack.coffee
+++ b/lib/handler_stack.coffee
@@ -1,7 +1,6 @@
root = exports ? window
class HandlerStack
-
constructor: ->
@debug = false
@eventNumber = 0
@@ -95,5 +94,9 @@ class HandlerStack
label ||= if result then "continue/truthy" else "suppress"
console.log "#{@eventNumber}", type, handler._name, label
+ # For tests only.
+ reset: ->
+ @stack = []
+
root.HandlerStack = HandlerStack
root.handlerStack = new HandlerStack()