From d4bafd67e2a80dd171b7cc641f96976455b89675 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 2 Apr 2016 23:17:02 -0700 Subject: [PATCH] Get rid of unnecessary writes. --- src/Quotelinks/QuoteThreading.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Quotelinks/QuoteThreading.coffee b/src/Quotelinks/QuoteThreading.coffee index f8472aba2..6ed742c25 100644 --- a/src/Quotelinks/QuoteThreading.coffee +++ b/src/Quotelinks/QuoteThreading.coffee @@ -7,7 +7,7 @@ QuoteThreading = return unless Conf['Quote Threading'] and g.VIEW is 'thread' @controls = $.el 'span', - <%= html('') %> + <%= html('') %> @threadNewLink = $.el 'span', className: 'brackets-wrap threadnewlink' @@ -17,6 +17,7 @@ QuoteThreading = @input = $('input', @controls) @input.checked = Conf['Thread Quotes'] + $.on @input, 'change', $.cb.checked $.on @input, 'change', @rethread $.on @threadNewLink.firstElementChild, 'click', @rethread @@ -114,9 +115,6 @@ QuoteThreading = QuoteThreading.threadNewLink.hidden = true - Conf['Thread Quotes'] = QuoteThreading.input.checked - $.set 'Thread Quotes', Conf['Thread Quotes'] - if Conf['Thread Quotes'] posts.forEach QuoteThreading.insert else