Skip to content
Browse files

Sequence constructor corrrects sets tasks internal property

  • Loading branch information...
1 parent b642376 commit 3bf48338f4699f4c85298dc15470a225192f32a4 @tim-smart committed Aug 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/parallel/index.js
View
2 lib/parallel/index.js
@@ -69,7 +69,7 @@ var Sequence = exports.Sequence = function Sequence(tasks) {
if (typeof tasks === 'function') {
tasks = Array.prototype.slice.call(arguments);
}
- this._tasks = tasks;
+ this._tasks = tasks || [];
return this;
};

0 comments on commit 3bf4833

Please sign in to comment.
Something went wrong with that request. Please try again.