Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the build function to be re-entrant.

  • Loading branch information...
commit ff32ebaf6f13d7c27db36f0a31d5237393685600 1 parent fd6513f
@creationix authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 build.js
View
5 build.js
@@ -11,8 +11,7 @@ var ARTICLE_DIR = 'data/articles',
SKIN_DIR = 'data/skin',
PUBLIC_DIR = 'public';
-var articles = [],
- authors = {};
+var articles, authors;
var Filters = {
@@ -260,6 +259,8 @@ function render(data, next) {
exports.build = function (next) {
// Kick off the process
+ articles = [];
+ authors = {};
main([
["articles", ARTICLE_DIR, /^(.*)\.(markdown)$/],
["authors", AUTHOR_DIR, /^(.*)\.(markdown)$/],
Please sign in to comment.
Something went wrong with that request. Please try again.