Permalink
Browse files

v1.1.2

  • Loading branch information...
1 parent d768b8c commit e4f2455eb03c1848b696ea901b470325f220ab80 @ben-lin ben-lin committed Jul 18, 2012
Showing with 24 additions and 17 deletions.
  1. +22 −13 History.md
  2. +2 −4 lib/flow.js
View
@@ -1,45 +1,54 @@
+# History
+
+## 1.1.2 / 2012-07-19
+
+- [refactoring] `.end()` deos not need to take a callback
+- [update packages] mongoose->2.7.1, should->1.0.0
+
+
+
## 1.1.1 / 2012-03-31
- - [refactoring] Error handling when no parallel task assigned before calling `join`
+- [refactoring] Error handling when no parallel task assigned before calling `join`
## 1.1.0 / 2012-02-14
- - [new feature] Pass is_parallel to have better look args from last stack
- - [refactoring] Use Object.keys forEAch instead of for in
- - [update packages] mongoose->2.5.7 for test
- - Added more tests
+- [new feature] Pass is_parallel to have better look args from last stack
+- [refactoring] Use Object.keys forEAch instead of for in
+- [update packages] mongoose->2.5.7 for test
+- Added more tests
## 1.0.0 / 2012-02-14
- - [bug fix] Parallel arguments from last stack should be overwritten by default arguments
- - Added full test
+- [bug fix] Parallel arguments from last stack should be overwritten by default arguments
+- Added full test
## 0.1.0 / 2012-02-13
- - [bug fix] Cant pass arguments to parallel fn from series fn
- - Read version number from package.json
- - Added basic tests
+- [bug fix] Cant pass arguments to parallel fn from series fn
+- Read version number from package.json
+- Added basic tests
## 0.0.3 / 2012-01-16
- - [bug fix] Clear arguments passed from ready method before running the next task
+- [bug fix] Clear arguments passed from ready method before running the next task
## 0.0.2 / 2012-01-16
- - [bug fix] Merge arguments from parallel tasks and pass to the next task
+- [bug fix] Merge arguments from parallel tasks and pass to the next task
## 0.0.1 / 2012-01-10
- - Initial release
+- Initial release
View
@@ -214,7 +214,7 @@ Flow.prototype = {
*/
_add : function ( args, next_type, callback, merge_default ){
var self = this;
- var task = [].shift.call( args );
+ var task = [].shift.call( args ) || function (){};
var _args = merge_default ? extend( true, [], this._defaults ) : [];
extend( true, _args, slice.call( args ));
@@ -393,9 +393,7 @@ Flow.prototype = {
* });
*/
end : function (){
- var args = arguments || function (){};
-
- this.series.apply( this, args ).
+ this.series.apply( this, arguments ).
_run_series( this._series_args.shift());
return this;

0 comments on commit e4f2455

Please sign in to comment.