Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

should fork before use a new after in a function

  • Loading branch information...
commit 3cee024d13b91447530fe4d5016d7d12074777db 1 parent 6e20cf4
@ericfong authored
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(){
Please sign in to comment.
Something went wrong with that request. Please try again.