Bug Tracker

Opened 11 years ago

Closed 11 years ago

#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:
Blocked by: Blocking:


To reproduce the problem.

  1. Prepare a plain target object having specific property.
  2. Make a deferred object and a promise object with the target object using the deferred object.
  3. Call the then method of the promise object
  4. Check if the returned object has that specific property.

Here is jsfiddle. http://jsfiddle.net/Lbruk/

Change History (1)

comment:1 Changed 11 years ago by jaubourg

Component: unfileddeferred
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.