Comparing version 0.6.1 to 0.6.2
@@ -31,11 +31,8 @@ /*jshint onevar: false, indent:4 */ | ||
var _toString = Object.prototype.toString; | ||
var _isArray = Array.isArray || function (obj) { | ||
return toString.call(obj) === '[object Array]'; | ||
return _toString.call(obj) === '[object Array]'; | ||
}; | ||
var _isFunction = function (obj) { | ||
return obj instanceof Function || | ||
toString.call(obj) === '[object Function]'; | ||
}; | ||
var _each = function (arr, iterator) { | ||
@@ -448,3 +445,3 @@ if (arr.forEach) { | ||
_each(keys, function (k) { | ||
var task = _isFunction(tasks[k]) ? [tasks[k]]: tasks[k]; | ||
var task = _isArray(tasks[k]) ? tasks[k]: [tasks[k]]; | ||
var taskCallback = function (err) { | ||
@@ -451,0 +448,0 @@ var args = Array.prototype.slice.call(arguments, 1); |
@@ -6,3 +6,3 @@ { | ||
"author": "Caolan McMahon", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"repository" : { | ||
@@ -9,0 +9,0 @@ "type" : "git", |
@@ -1245,6 +1245,7 @@ # Async.js | ||
* `tasks` - An object literal (containing named functions) or an array (of | ||
requirements, with the function itself the last item in the array). The key | ||
used for each function or array is used when specifying requirements. The | ||
function receives two arguments: (1) a `callback(err, result)` which must be | ||
* `tasks` - An object. Each of its properties is either a function or an array of | ||
requirements, with the function itself the last item in the array. The object's key | ||
of a property serves as the name of the task defined by that property, | ||
i.e. can be used when specifying requirements for other tasks. | ||
The function receives two arguments: (1) a `callback(err, result)` which must be | ||
called when finished, passing an `error` (which can be `null`) and the result of | ||
@@ -1251,0 +1252,0 @@ the function's execution, and (2) a `results` object, containing the results of |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1633
85406
971