We're using Backbone models and collections in combination with flow-js to sync API calls. As per your example, MULTI() takes a parameter that allows it to identify a result when multiple async methods are required to complete before continuing. However:
We're using Backbone models and collections in combination with flow-js to sync API calls. As per your example,
MULTI()
takes a parameter that allows it to identify a result when multiple async methods are required to complete before continuing. However:The code returns a numerically indexed array instead, so your example of
results['a']
andresults['b']
returnundefined
.