fix:added callback to function() atEnd

This commit is contained in:
Philipp Kunz 2015-11-24 13:44:32 +01:00
parent 4cb24a4a6d
commit e69e8df875
2 changed files with 4 additions and 2 deletions

View File

@ -32,10 +32,11 @@ var forEach = function (file, enc, cb) {
//tell gulp that we are complete
return cb(null, file);
};
var atEnd = function () {
var atEnd = function (cb) {
if (gulpCallFunction.executionMode == "atEnd") {
runFunctionNames();
}
cb();
};
module.exports = function (functionsToExecute, executionMode, logBool) {
if (executionMode === void 0) { executionMode = 'forEach'; }

View File

@ -33,10 +33,11 @@ var forEach = function (file, enc, cb) {
return cb(null, file);
};
var atEnd = function() {
var atEnd = function(cb) {
if (gulpCallFunction.executionMode == "atEnd") {
runFunctionNames();
}
cb();
};
module.exports = function (functionsToExecute:any|any[],executionMode:string = 'forEach', logBool = false) {
gulpCallFunction.functionsToExecute = functionsToExecute;