Bug Tracker

Modify

Ticket #12164 (closed bug: invalid)

Opened 10 months ago

Last modified 10 months ago

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.

  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

comment:1 Changed 10 months ago by jaubourg

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfiled to deferred

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.