Browse files

should fork before use a new after in a function

  • Loading branch information...
1 parent 6e20cf4 commit 3cee024d13b91447530fe4d5016d7d12074777db @ericfong committed Feb 2, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 after.js
  2. +1 −0 index.html
  3. +1 −0 readme.md
View
2 after.js
@@ -53,5 +53,5 @@ var after = (function(){
after.fork = fork;
return after;
};
- return fork();
+ return fork;
})();
View
1 index.html
@@ -8,6 +8,7 @@
var out = '';
// first parallel group
+ after = after.fork();
after.append(function(){
setTimeout(after(function(){
View
1 readme.md
@@ -1,6 +1,7 @@
Use after like this:
// first parallel group
+ after = after.fork();
after.append(function(){
setTimeout(after(function(){

0 comments on commit 3cee024

Please sign in to comment.