From c05ad658954dfeec4da3e37a7cd0f8a768125490 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 8 Oct 2010 15:37:30 -0400 Subject: [PATCH] Remove spurious modes.reset() in RangeFinder#onSubmit. Fixes focusing links on submit. --HG-- branch : mode-refactoring extra : rebase_source : 494ba7809803499905f135c4410f5e87af4417d6 --- common/content/dactyl-overlay.js | 2 +- common/content/finder.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/content/dactyl-overlay.js b/common/content/dactyl-overlay.js index f764ef9d..676a403d 100644 --- a/common/content/dactyl-overlay.js +++ b/common/content/dactyl-overlay.js @@ -13,7 +13,7 @@ sandbox.__proto__ = proto || modules; return sandbox; } - const jsmodules = { dump: function dump_(arg) window.dump("dactyl: " + arg + "\n") }; + const jsmodules = {}; const modules = { __proto__: jsmodules, get content() window.content, diff --git a/common/content/finder.js b/common/content/finder.js index c92ac86d..0ef0dea0 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -114,8 +114,6 @@ const RangeFinder = Module("rangefinder", { if (options["hlsearch"]) this.highlight(); this.rangeFind.focus(); - - modes.reset(); }, // Called when the search is canceled - for example if someone presses