Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

should fork before use a new after in a function

  • Loading branch information...
commit 3cee024d13b91447530fe4d5016d7d12074777db 1 parent 6e20cf4
Eric Fong authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  after.js
  2. +1 −0  index.html
  3. +1 −0  readme.md
2  after.js
View
@@ -53,5 +53,5 @@ var after = (function(){
after.fork = fork;
return after;
};
- return fork();
+ return fork;
})();
1  index.html
View
@@ -8,6 +8,7 @@
var out = '';
// first parallel group
+ after = after.fork();
after.append(function(){
setTimeout(after(function(){
1  readme.md
View
@@ -1,6 +1,7 @@
Use after like this:
// first parallel group
+ after = after.fork();
after.append(function(){
setTimeout(after(function(){
Please sign in to comment.
Something went wrong with that request. Please try again.