Skip to content

Commit

Permalink
fixed fork 'all' callback behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed Mar 15, 2018
1 parent 3143ef0 commit 5fc1e31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Context_Nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,11 @@ export class Fork_Node extends Context_Node{
var task = new Task(forked_key, key);
forked_key+=1;
self.addTask(task);
task.complete(newDatum);
task.stored_result = newDatum;
newTasks.push(task);
});
newTasks.forEach(function(task){
task.complete(task.stored_result);
self.publishResult(task);
});
});
Expand Down

0 comments on commit 5fc1e31

Please sign in to comment.