Modify ↓
Ticket #12164 (closed bug: invalid)
A promise object's then method does not return the original target object's properties.
| Reported by: | flowersinthesand | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | deferred | Version: | 1.8rc1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
To reproduce the problem.
- Prepare a plain target object having specific property.
- Make a deferred object and a promise object with the target object using the deferred object.
- Call the then method of the promise object
- Check if the returned object has that specific property.
Here is jsfiddle. http://jsfiddle.net/Lbruk/
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

then is now implemented like pipe, so it returns a new promise: http://bugs.jquery.com/ticket/11010
Use done, fail and progress for chaining, they will work as usual.