Not enough speed increase to justify this.

This commit is contained in:
ccd0 2015-12-06 18:31:15 -08:00
parent b2cb0e4a32
commit cb4fd837c6

View File

@ -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