diff options
| author | mrmr1993 | 2015-05-31 18:10:01 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2015-05-31 18:10:01 +0100 | 
| commit | f09f65c53cddf05544c8fa417bb0d92438c98a63 (patch) | |
| tree | e20e667336002e8d4ea2b242ae26480713953a9c /content_scripts/scroller.coffee | |
| parent | 7e67c3d36b47641b21ec24be5d8f7af11ad08756 (diff) | |
| download | vimium-f09f65c53cddf05544c8fa417bb0d92438c98a63.tar.bz2 | |
Remove all remaining references to frontend settings
Diffstat (limited to 'content_scripts/scroller.coffee')
| -rw-r--r-- | content_scripts/scroller.coffee | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/content_scripts/scroller.coffee b/content_scripts/scroller.coffee index 29142064..81c71fcd 100644 --- a/content_scripts/scroller.coffee +++ b/content_scripts/scroller.coffee @@ -117,8 +117,7 @@ checkVisibility = (element) ->  # CoreScroller contains the core function (scroll) and logic for relative scrolls.  All scrolls are ultimately  # translated to relative scrolls.  CoreScroller is not exported.  CoreScroller = -  init: (frontendSettings) -> -    @settings = frontendSettings +  init: ->      @time = 0      @lastEvent = null      @keyIsDown = false @@ -215,11 +214,11 @@ CoreScroller =  # Scroller contains the two main scroll functions which are used by clients.  Scroller = -  init: (frontendSettings) -> +  init: ->      handlerStack.push        _name: 'scroller/active-element'        DOMActivate: (event) -> handlerStack.alwaysContinueBubbling -> activatedElement = event.target -    CoreScroller.init frontendSettings +    CoreScroller.init()    # scroll the active element in :direction by :amount * :factor.    # :factor is needed because :amount can take on string values, which scrollBy converts to element dimensions. | 
