More unused argument cleanup.
This commit is contained in:
parent
82cd322c4b
commit
dca84b6d2d
@ -318,7 +318,7 @@ chrome.storage.onChanged.addListener (changes, area) ->
|
||||
return
|
||||
$.sync = (key, cb) ->
|
||||
$.syncing[key] = cb
|
||||
$.forceSync = (key) -> return
|
||||
$.forceSync = -> return
|
||||
|
||||
$.get = (key, val, cb) ->
|
||||
if typeof cb is 'function'
|
||||
|
||||
@ -44,13 +44,15 @@ ExpandThread =
|
||||
if thread.ID of ExpandThread.statuses
|
||||
ExpandThread.contract thread, a, threadRoot
|
||||
else
|
||||
ExpandThread.expand thread, a, threadRoot
|
||||
expand: (thread, a, threadRoot) ->
|
||||
ExpandThread.expand thread, a
|
||||
|
||||
expand: (thread, a) ->
|
||||
ExpandThread.statuses[thread] = status = {}
|
||||
a.textContent = ExpandThread.text '...', a.textContent.match(/\d+/g)...
|
||||
status.req = $.cache "//a.4cdn.org/#{thread.board}/thread/#{thread}.json", ->
|
||||
delete status.req
|
||||
ExpandThread.parse @, thread, a
|
||||
|
||||
contract: (thread, a, threadRoot) ->
|
||||
status = ExpandThread.statuses[thread]
|
||||
delete ExpandThread.statuses[thread]
|
||||
@ -78,6 +80,7 @@ ExpandThread =
|
||||
filesCount++ if 'file' of Get.postFromRoot reply
|
||||
$.rm reply
|
||||
a.textContent = ExpandThread.text '+', postsCount, filesCount
|
||||
|
||||
parse: (req, thread, a) ->
|
||||
if req.status not in [200, 304]
|
||||
a.textContent = "Error #{req.statusText} (#{req.status})"
|
||||
|
||||
@ -16,7 +16,7 @@ RemoveSpoilers =
|
||||
if g.VIEW is 'archive'
|
||||
$.ready -> RemoveSpoilers.unspoiler $.id 'arc-list'
|
||||
|
||||
node: (post) ->
|
||||
node: ->
|
||||
RemoveSpoilers.unspoiler @nodes.comment
|
||||
|
||||
unspoiler: (el) ->
|
||||
|
||||
@ -23,7 +23,7 @@ ThreadStats =
|
||||
@dialog = sc = UI.dialog 'thread-stats', 'bottom: 0px; right: 0px;',
|
||||
<%= html('<div class="move" title="${statsTitle}">&{statsHTML}</div>') %>
|
||||
$.addClass doc, 'float'
|
||||
$.ready =>
|
||||
$.ready ->
|
||||
$.add d.body, sc
|
||||
|
||||
@postCountEl = $ '#post-count', sc
|
||||
|
||||
@ -15,7 +15,7 @@ QR.post = class
|
||||
|
||||
$.on el, 'click', @select
|
||||
$.on @nodes.rm, 'click', (e) => e.stopPropagation(); @rm()
|
||||
$.on @nodes.label, 'click', (e) => e.stopPropagation()
|
||||
$.on @nodes.label, 'click', (e) -> e.stopPropagation()
|
||||
$.on @nodes.spoiler, 'change', (e) =>
|
||||
@spoiler = e.target.checked
|
||||
QR.nodes.spoiler.checked = @spoiler if @ is QR.selected
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user