From c8795949095927a7cb0692f723134144c842c26b Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 13 Jan 2014 01:07:38 -0700 Subject: [PATCH] And that, honestly, feel best anyways. --- builds/4chan-X.user.js | 9 +++------ builds/crx/script.js | 9 +++------ src/General/Get.coffee | 6 ++---- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d15543438..f1f9be18e 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -3108,18 +3108,15 @@ }; }, allQuotelinksLinkingTo: function(post) { - var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2; + var ID, handleQuotes, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2; quotelinks = []; - qLconcat = function(links) { - return quotelinks.push.apply(quotelinks, links); - }; handleQuotes = function(post) { var clone, _i, _len, _ref; - qLconcat(post.nodes.quotelinks); + quotelinks.push.apply(quotelinks, post.nodes.quotelinks); _ref = post.clones; for (_i = 0, _len = _ref.length; _i < _len; _i++) { clone = _ref[_i]; - qLconcat(clone.nodes.quotelinks); + quotelinks.push.apply(quotelinks, clone.nodes.quotelinks); } }; _ref = g.posts; diff --git a/builds/crx/script.js b/builds/crx/script.js index 11830fd1c..64bb96758 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -3118,18 +3118,15 @@ }; }, allQuotelinksLinkingTo: function(post) { - var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2; + var ID, handleQuotes, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2; quotelinks = []; - qLconcat = function(links) { - return quotelinks.push.apply(quotelinks, links); - }; handleQuotes = function(post) { var clone, _i, _len, _ref; - qLconcat(post.nodes.quotelinks); + quotelinks.push.apply(quotelinks, post.nodes.quotelinks); _ref = post.clones; for (_i = 0, _len = _ref.length; _i < _len; _i++) { clone = _ref[_i]; - qLconcat(clone.nodes.quotelinks); + quotelinks.push.apply(quotelinks, clone.nodes.quotelinks); } }; _ref = g.posts; diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 3aaf999ef..d6d752943 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -40,12 +40,10 @@ Get = allQuotelinksLinkingTo: (post) -> # Get quotelinks & backlinks linking to the given post. quotelinks = [] - qLconcat = (links) -> - quotelinks.push links... handleQuotes = (post) -> - qLconcat post.nodes.quotelinks + quotelinks.push post.nodes.quotelinks... for clone in post.clones - qLconcat clone.nodes.quotelinks + quotelinks.push clone.nodes.quotelinks... return # First: # In every posts,