aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/scroller.coffee
diff options
context:
space:
mode:
authormrmr19932015-05-31 18:10:01 +0100
committermrmr19932015-05-31 18:10:01 +0100
commitf09f65c53cddf05544c8fa417bb0d92438c98a63 (patch)
treee20e667336002e8d4ea2b242ae26480713953a9c /content_scripts/scroller.coffee
parent7e67c3d36b47641b21ec24be5d8f7af11ad08756 (diff)
downloadvimium-f09f65c53cddf05544c8fa417bb0d92438c98a63.tar.bz2
Remove all remaining references to frontend settings
Diffstat (limited to 'content_scripts/scroller.coffee')
-rw-r--r--content_scripts/scroller.coffee7
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.