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

View File

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