Skip to content

Commit

Permalink
give caolan his credit where it's due (up top)
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Dec 8, 2010
1 parent 3f94fc7 commit a2b702e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions underscore.js
@@ -1,5 +1,5 @@
// Underscore.js 1.1.3
// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
// (c) 2010 Jeremy Ashkenas, Caolan McMahon.
// Underscore is freely distributable under the MIT license.
// Portions of Underscore are inspired or borrowed from Prototype,
// Oliver Steele's Functional, and John Resig's Micro-Templating.
Expand Down Expand Up @@ -694,14 +694,12 @@
return data ? func(data) : func;
};

// Async Functions
// ---------------

// Start of async.js merge - Caolan McMahon (@caolan)
// --------------------------------------------------

// Asynchronous version of `each`.
_.asyncEach = _.asyncForEach = function (arr, iterator, callback) {
if (!arr.length) {
return callback();
}
if (!arr.length) return callback();
var completed = 0;
_.forEach(arr, function (x) {
iterator(x, function (err) {
Expand Down

0 comments on commit a2b702e

Please sign in to comment.