Permalink
Browse files

Experimental change. It's perhaps easier to work the `get` system if …

…property generators run in a predictable sequence (i.e, in series).
  • Loading branch information...
1 parent f3effd4 commit d058732efa9c68dc93f5cf351b44e4b732718942 @timoxley timoxley committed Dec 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/kin.js
View
@@ -42,7 +42,7 @@ Kin.prototype.generate = function(type, overrideProperties, callback) {
properties[key] = value
})
var keys = _.keys(properties)
- async.forEach(
+ async.forEachSeries(
keys,
function(key, callback) {
var property = properties[key]
@@ -85,7 +85,7 @@ Kin.evaluateProperty = function(context, property, count, callback) {
while(count--) {
functions.push(property)
}
- async.map(
+ async.mapSeries(
functions,
function(item, callback) {
item.call(context, function(err, result) {

0 comments on commit d058732

Please sign in to comment.