back to async by default, typo fix on fi[r]strun

This commit is contained in:
AJ ONeal 2012-06-06 13:32:26 -06:00
parent 8005996062
commit ca3c95b022
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
"forEachAsync": ">= 2.1.0"
"forEachAsync": "~2.2"
},
"lib" : ".",
"main" : "./walk.js",

View File

@ -31,11 +31,11 @@
var me = this
;
me._wsync = true;
me._wsync = sync;
me._wq = [];
me._wqueue = [me._wq];
me._wcurpath = undefined;
me._wfistrun = true;
me._wfirstrun = true;
me._wcurpath = pathname;
if (me._wsync) {
@ -151,13 +151,13 @@
return;
}
if (!me._wfistrun) {
if (!me._wfirstrun) {
me.emit('directoryError', me._wcurpath, { error: err }, noop);
me._wReadFiles();
return;
}
me._wfistrun = false;
me._wfirstrun = false;
// TODO how to remove this anony?
fs.lstat(me._wcurpath, function (e, stat) {