Shorter QuoteYou code.

Not sure why I had written it that way.
This commit is contained in:
Mayhem 2013-08-10 15:46:48 +02:00
parent 79aa6eb975
commit 1e439167d7

View File

@ -10,11 +10,6 @@ QuoteYou =
node: -> node: ->
# Stop there if it's a clone. # Stop there if it's a clone.
return if @isClone return if @isClone
# Stop there if there's no quotes in that post. for quotelink in quotelinks when QR.db.get Get.postDataFromLink quotelink
return unless (quotes = @quotes).length $.add quotelink, $.tn QuoteYou.text
{quotelinks} = @nodes
for quotelink in quotelinks
if QR.db.get Get.postDataFromLink quotelink
$.add quotelink, $.tn QuoteYou.text
return return