From 4c206967ad110735b761751d5b24e96596e6a2e7 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Mon, 24 Mar 2014 20:59:09 -0600 Subject: [PATCH] Prevent duplicate compile --- bin/rhtmlc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/rhtmlc.js b/bin/rhtmlc.js index e47b8b33b..4f8612428 100644 --- a/bin/rhtmlc.js +++ b/bin/rhtmlc.js @@ -29,6 +29,8 @@ function compile(path) { return; } + found[path] = true; + var deferred = raptorPromises.defer(); var outPath = path + '.js'; @@ -72,7 +74,6 @@ globPatterns.forEach(function(globPattern) { promises.push(deferred.promise); }); -console.log('Promises: ', promises.length); raptorPromises.all(promises).then( function() { console.log('Done!');