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