Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13663 closed bug (notabug)

In the calls order "deferred.then(...).fail(...)" the fail callback doesn't receive arguments

Reported by: GolubevS79@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

In the calls chain "deferred.then(...).fail(...)" the fail callback doesn't receive arguments, but the chain "deferred.fail(...).then(...)" works correct.

The same with "done" and "progress" methods.

http://jsfiddle.net/golubev/7WzUd/1/

Change History (1)

comment:1 Changed 7 years ago by dmethvin

Resolution: notabug
Status: newclosed

The .then() creates a *new* promise, I suspect that is what you are trying to describe but there wasn't a test case. This is documented, http://api.jquery.com/deferred.then/ so please followup questions to a forum.

Note: See TracTickets for help on using tickets.