Skip to main content

Bug Tracker

Side navigation

#12164 closed bug (invalid)

Opened July 31, 2012 02:29PM UTC

Closed July 31, 2012 02:36PM UTC

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.

1. Make a deferred object and a promise object with the target object using the deferred object.

1. Call the then method of the promise object

1. Check if the returned object has that specific property.

Here is jsfiddle.

Attachments (0)
Change History (1)

Changed July 31, 2012 02:36PM UTC by jaubourg comment:1

component: unfileddeferred
resolution: → invalid
status: newclosed

then is now implemented like pipe, so it returns a new promise:

Use done, fail and progress for chaining, they will work as usual.