From cb4fd837c6e3a163d7fd78034c7cf65e10589cca Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 6 Dec 2015 18:31:15 -0800 Subject: [PATCH] Not enough speed increase to justify this. --- src/Quotelinks/QuoteInline.coffee | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Quotelinks/QuoteInline.coffee b/src/Quotelinks/QuoteInline.coffee index 1338961df..482087cf2 100644 --- a/src/Quotelinks/QuoteInline.coffee +++ b/src/Quotelinks/QuoteInline.coffee @@ -2,15 +2,6 @@ QuoteInline = init: -> return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Inlining'] - @process = if Conf['Quote Hash Navigation'] - (link, clone) -> - $.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless clone - $.on link, 'click', QuoteInline.toggle - - else - (link) -> - $.on link, 'click', QuoteInline.toggle - if Conf['Comment Expansion'] ExpandComment.callbacks.push @node @@ -25,6 +16,11 @@ QuoteInline = process link, isClone for link in @nodes.backlinks return + process: (link, clone) -> + if Conf['Quote Hash Navigation'] + $.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless clone + $.on link, 'click', QuoteInline.toggle + qiQuote: (link, hidden) -> name = "hashlink" name += " filtered" if hidden