fix:added callback to function() atEnd
This commit is contained in:
		
							
								
								
									
										3
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								index.js
									
									
									
									
									
								
							| @@ -32,10 +32,11 @@ var forEach = function (file, enc, cb) { | |||||||
|     //tell gulp that we are complete |     //tell gulp that we are complete | ||||||
|     return cb(null, file); |     return cb(null, file); | ||||||
| }; | }; | ||||||
| var atEnd = function () { | var atEnd = function (cb) { | ||||||
|     if (gulpCallFunction.executionMode == "atEnd") { |     if (gulpCallFunction.executionMode == "atEnd") { | ||||||
|         runFunctionNames(); |         runFunctionNames(); | ||||||
|     } |     } | ||||||
|  |     cb(); | ||||||
| }; | }; | ||||||
| module.exports = function (functionsToExecute, executionMode, logBool) { | module.exports = function (functionsToExecute, executionMode, logBool) { | ||||||
|     if (executionMode === void 0) { executionMode = 'forEach'; } |     if (executionMode === void 0) { executionMode = 'forEach'; } | ||||||
|   | |||||||
| @@ -33,10 +33,11 @@ var forEach = function (file, enc, cb) { | |||||||
|     return cb(null, file); |     return cb(null, file); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| var atEnd = function() { | var atEnd = function(cb) { | ||||||
|     if (gulpCallFunction.executionMode == "atEnd") { |     if (gulpCallFunction.executionMode == "atEnd") { | ||||||
|         runFunctionNames(); |         runFunctionNames(); | ||||||
|     } |     } | ||||||
|  |     cb(); | ||||||
| }; | }; | ||||||
| module.exports = function (functionsToExecute:any|any[],executionMode:string = 'forEach', logBool = false) { | module.exports = function (functionsToExecute:any|any[],executionMode:string = 'forEach', logBool = false) { | ||||||
|     gulpCallFunction.functionsToExecute = functionsToExecute; |     gulpCallFunction.functionsToExecute = functionsToExecute; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user