From 8d54c13d5f0edf52d7421d0fdbd7c68c86b45773 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 13 Jan 2014 01:06:21 -0700 Subject: [PATCH] There's a splat for that. --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/General/Get.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 2424976a7..d15543438 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -3111,7 +3111,7 @@ var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2; quotelinks = []; qLconcat = function(links) { - return quotelinks = quotelinks.concat(links); + return quotelinks.push.apply(quotelinks, links); }; handleQuotes = function(post) { var clone, _i, _len, _ref; diff --git a/builds/crx/script.js b/builds/crx/script.js index 3e48bfafc..11830fd1c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -3121,7 +3121,7 @@ var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2; quotelinks = []; qLconcat = function(links) { - return quotelinks = quotelinks.concat(links); + return quotelinks.push.apply(quotelinks, links); }; handleQuotes = function(post) { var clone, _i, _len, _ref; diff --git a/src/General/Get.coffee b/src/General/Get.coffee index d9480a052..3aaf999ef 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -41,7 +41,7 @@ Get = # Get quotelinks & backlinks linking to the given post. quotelinks = [] qLconcat = (links) -> - quotelinks = quotelinks.concat links + quotelinks.push links... handleQuotes = (post) -> qLconcat post.nodes.quotelinks for clone in post.clones