From ff9990701b13a5834e2f97353cfcc00f7c9572ca Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Fri, 19 Jul 2013 15:26:29 -0400 Subject: [PATCH] changed to async.eachSeries --- src/posts.js | 43 ++++++++++++++++++++++--------------------- src/topics.js | 2 +- src/user.js | 8 ++++---- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/src/posts.js b/src/posts.js index 3c9714b5bc..5a09ff0df8 100644 --- a/src/posts.js +++ b/src/posts.js @@ -107,28 +107,29 @@ marked.setOptions({ } Posts.getPostsByPids = function(pids, callback) { - var posts = [], - loaded = 0; - - for(var i=0, ii=pids.length; i