Permalink
Browse files

simple test passes

  • Loading branch information...
1 parent 61efb55 commit 9d4e860c220b774d2741a06adf8518c916acdd3e @substack committed Jun 12, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 index.js
View
@@ -34,11 +34,11 @@ function transform (context, src, cb) {
res(function (err, s_) {
node.update(stringify(s_));
- if (--pending === 0) {
- process.nextTick(function () {
+ process.nextTick(function () {
+ if (--pending === 0) {
cb(null, String(output).replace(/^\(|\)$/g, ''));
- });
- }
+ }
+ });
}, node);
}
else {

0 comments on commit 9d4e860

Please sign in to comment.