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