Prevent duplicate compile

This commit is contained in:
Patrick Steele-Idem 2014-03-24 20:59:09 -06:00
parent c5252f0409
commit 4c206967ad

View File

@ -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!');