Remove unneeded event arguments from event handlers.

This commit is contained in:
ccd0 2015-02-15 01:03:56 -08:00
parent 6dcf2adcc2
commit 82cd322c4b
5 changed files with 6 additions and 6 deletions

View File

@ -348,7 +348,7 @@ Header =
$.rmClass Header.bar, 'scroll'
$.rmClass Header.bar, 'autohide' unless Conf['Header auto-hide']
toggleHideBarOnScroll: (e) ->
toggleHideBarOnScroll: ->
hide = @checked
$.cb.checked.call @
Header.setHideBarOnScroll hide

View File

@ -76,7 +76,7 @@ ImageExpand =
toggle post for post in [post, post.clones...]
return
playVideos: (e) ->
playVideos: ->
g.posts.forEach (post) ->
for post in [post, post.clones...]
{file} = post

View File

@ -36,7 +36,7 @@ PSAHiding =
$.sync 'hiddenPSA', PSAHiding.sync
toggle: (e) ->
toggle: ->
if $.hasClass @, 'hide-announcement'
UTC = +$.id('globalMessage').dataset.utc
$.set 'hiddenPSA', UTC

View File

@ -118,14 +118,14 @@ ThreadUpdater =
-> true
else
-> not d.hidden
autoUpdate: (e) ->
autoUpdate: ->
ThreadUpdater.count ThreadUpdater.isUpdating = @checked
interval: (e) ->
val = parseInt @value, 10
if val < 1 then val = 1
ThreadUpdater.interval = @value = val
$.cb.value.call @ if e
load: (e) ->
load: ->
{req} = ThreadUpdater
switch req.status
when 200

View File

@ -145,7 +145,7 @@ QR =
else
$.off d, 'scroll', QR.scrollLock
scrollLock: (e) ->
scrollLock: ->
if d.activeElement and QR.nodes.el.contains(d.activeElement) and d.activeElement.nodeName is 'IFRAME'
window.scroll window.scrollX, QR.scrollY
else