There's a splat for that.

This commit is contained in:
Zixaphir 2014-01-13 01:06:21 -07:00
parent 2e1dc0088d
commit 8d54c13d5f
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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