Skip to content

Commit

Permalink
Handle scenario for Task.All/Any called with array of tasks rather th…
Browse files Browse the repository at this point in the history
…an sequence of params.
  • Loading branch information
nikhilk committed Jun 16, 2013
1 parent 283e79d commit 35444d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core/Scripts/Runtime/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ function _joinTasks(tasks, any) {
tasks = tasks.slice(1);
count--;
}
if (Array.isArray(tasks[0])) {
tasks = tasks[0];
count = tasks.length;
}

var joinTask = new Task();
var seen = 0;
Expand Down

0 comments on commit 35444d0

Please sign in to comment.