Skip to content

$.when, $.progress and already resolved deferred #1894

@nicolashenry

Description

@nicolashenry

This code :

$.when($.Deferred().notify(1).resolve(), 
$.Deferred().notify(2).resolve(), 
$.Deferred().notify(3).resolve())
.progress(function() {
    console.log(arguments);
});

displays "[1,2,undefined]".
I would expect to have "[1,2,3]" as a result because this behavior with the last notify does not appear to be described in the documentation. If any of the deferred objects is not already resolved, the display is "[1,2,3]".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions