[ISSUE #5] Array.prototype.forEachAsync -> forEachAsync
This commit is contained in:
parent
1ea316fcbc
commit
2dd4eee860
|
@ -6,9 +6,9 @@
|
|||
"author" : "AJ ONeal <coolaj86@gmail.com>",
|
||||
"contributors" : [],
|
||||
"dependencies" : {
|
||||
"Array.prototype.forEachAsync": ">= 2.1.0"
|
||||
"forEachAsync": ">= 2.1.0"
|
||||
},
|
||||
"lib" : ".",
|
||||
"main" : "./walk.js",
|
||||
"version" : "2.0.1"
|
||||
"version" : "2.0.2"
|
||||
}
|
||||
|
|
12
lib/walk.js
12
lib/walk.js
|
@ -3,13 +3,15 @@
|
|||
"use strict"
|
||||
|
||||
// Array.prototype.forEachAsync(next, item, i, collection)
|
||||
require('Array.prototype.forEachAsync');
|
||||
//require('Array.prototype.forEachAsync');
|
||||
|
||||
function noop() {}
|
||||
|
||||
var fs = require('fs'),
|
||||
EventEmitter = require('events').EventEmitter,
|
||||
TypeEmitter = require('./node-type-emitter');
|
||||
var fs = require('fs')
|
||||
, forEachAsync = require('forEachAsync')
|
||||
, EventEmitter = require('events').EventEmitter
|
||||
, TypeEmitter = require('./node-type-emitter')
|
||||
;
|
||||
|
||||
function create(pathname, options, sync) {
|
||||
var emitter = new EventEmitter()
|
||||
|
@ -86,7 +88,7 @@
|
|||
});
|
||||
postFilesHandler();
|
||||
} else {
|
||||
files.forEachAsync(filesHandler).then(postFilesHandler);
|
||||
forEachAsync(files, filesHandler).then(postFilesHandler);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue