yui/yui3 — pull request #203 by juandopazo (2012-07-26 23:38:12+00:00)
Title: Guarantee order of results array

The order of the elements of the `results` array should match the order in which the `add()` calls where made.

On a side note, I'm thinking it would be useful to drop the `data` parameter/attribute since it's something we already have at the moment of calling `done()` and use `apply` on the callback and `results` so that results can be easily named:

```JavaScript
var stack = new Y.Parallel();
fs.readFile(template, stack.add(function (err, file) {
if (err) throw err;
return file;
});
stack.done(function (template) {
// foo...
});
```