There's a splat for that.
This commit is contained in:
parent
2e1dc0088d
commit
8d54c13d5f
@ -3111,7 +3111,7 @@
|
|||||||
var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
||||||
quotelinks = [];
|
quotelinks = [];
|
||||||
qLconcat = function(links) {
|
qLconcat = function(links) {
|
||||||
return quotelinks = quotelinks.concat(links);
|
return quotelinks.push.apply(quotelinks, links);
|
||||||
};
|
};
|
||||||
handleQuotes = function(post) {
|
handleQuotes = function(post) {
|
||||||
var clone, _i, _len, _ref;
|
var clone, _i, _len, _ref;
|
||||||
|
|||||||
@ -3121,7 +3121,7 @@
|
|||||||
var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
||||||
quotelinks = [];
|
quotelinks = [];
|
||||||
qLconcat = function(links) {
|
qLconcat = function(links) {
|
||||||
return quotelinks = quotelinks.concat(links);
|
return quotelinks.push.apply(quotelinks, links);
|
||||||
};
|
};
|
||||||
handleQuotes = function(post) {
|
handleQuotes = function(post) {
|
||||||
var clone, _i, _len, _ref;
|
var clone, _i, _len, _ref;
|
||||||
|
|||||||
@ -41,7 +41,7 @@ Get =
|
|||||||
# Get quotelinks & backlinks linking to the given post.
|
# Get quotelinks & backlinks linking to the given post.
|
||||||
quotelinks = []
|
quotelinks = []
|
||||||
qLconcat = (links) ->
|
qLconcat = (links) ->
|
||||||
quotelinks = quotelinks.concat links
|
quotelinks.push links...
|
||||||
handleQuotes = (post) ->
|
handleQuotes = (post) ->
|
||||||
qLconcat post.nodes.quotelinks
|
qLconcat post.nodes.quotelinks
|
||||||
for clone in post.clones
|
for clone in post.clones
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user