From 04ac4c64c9634d9f81035ff7e9db537f39b42f3c Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 7 Jan 2015 09:57:03 +0000 Subject: Modes; rework Singletons, InsertModeBlocker and HandlerStack. This begins work on addressing @philc's comments in #1413. That work is nevertheless not yet complete. --- content_scripts/mode_find.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content_scripts/mode_find.coffee') diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee index 44d50608..18cb7b71 100644 --- a/content_scripts/mode_find.coffee +++ b/content_scripts/mode_find.coffee @@ -10,8 +10,9 @@ class PostFindMode extends InsertModeBlocker constructor: (findModeAnchorNode) -> element = document.activeElement - super element, + super name: "post-find" + singleton: PostFindMode return @exit() unless element and findModeAnchorNode -- cgit v1.2.3