Fix errors from changing the Threading checkbox while loading page.

This commit is contained in:
ccd0 2016-04-02 23:55:03 -07:00
parent d4bafd67e2
commit a567752ba1

View File

@ -20,6 +20,7 @@ QuoteThreading =
$.on @input, 'change', $.cb.checked
$.on @input, 'change', @rethread
$.on @threadNewLink.firstElementChild, 'click', @rethread
$.on d, '4chanXInitFinished', => @ready = true
Header.menu.addEntry @entry =
el: @controls
@ -110,6 +111,7 @@ QuoteThreading =
return true
rethread: ->
return unless QuoteThreading.ready
{thread} = QuoteThreading
{posts} = thread