wookiehangover / underscore.deferred

jQuery style Deferreds for Underscore
https://github.com/wookiehangover/underscore.deferred
MIT License
225 stars 21 forks source link

Bug fixed related to when function #18

Closed lucianlature closed 11 years ago

lucianlature commented 11 years ago

When an array containing one single item ( one deferred ) was used as argument for the "when" function, the deferred was immediately returned as a resolve for itself, instead of the real solved value of that deferred. A small fixed for this situation was added into the code, and a test as well.