From f09f65c53cddf05544c8fa417bb0d92438c98a63 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Sun, 31 May 2015 18:10:01 +0100 Subject: Remove all remaining references to frontend settings --- content_scripts/vimium_frontend.coffee | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'content_scripts/vimium_frontend.coffee') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 5655ef61..b6c61c04 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -46,9 +46,6 @@ textInputXPath = (-> # must be called beforehand to ensure get() will return up-to-date values. # settings = - isLoaded: false - port: null - eventListeners: {} values: scrollStepSize: null linkHintCharacters: null @@ -64,10 +61,6 @@ settings = grabBackFocus: null searchEngines: null - init: -> - @port = true - Settings.init() - # # Give this frame a unique (non-zero) id. # @@ -98,7 +91,7 @@ class GrabBackFocus extends Mode # An input may already be focused. If so, grab back the focus. @grabBackFocus document.activeElement if document.activeElement - if settings.isLoaded then activate() else Settings.addEventListener "load", activate + if Settings.isLoaded then activate() else Settings.addEventListener "load", activate grabBackFocus: (element) -> return @continueBubbling unless DomUtils.isEditable element @@ -147,7 +140,7 @@ window.initializeModes = -> new NormalMode new PassKeysMode new InsertMode permanent: true - Scroller.init settings + Scroller.init() # # Complete initialization work that sould be done prior to DOMReady. -- cgit v1.2.3