Skip to main content

Bug Tracker

Side navigation

#12255 closed bug (worksforme)

Opened August 10, 2012 08:53PM UTC

Closed August 11, 2012 01:39AM UTC

Last modified August 13, 2012 04:50PM UTC

"deferred.then()" doesn't return object has resolve

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
Description

Hello.

"deferred.then()" doesn't return object has method "resolve" from version 1.8.0.

It is too difficult for me to debug the source.

Could you check it out?

Have a nice day!

Attachments (0)
Change History (4)

Changed August 10, 2012 08:55PM UTC by dmethvin comment:1

owner: → anonymous
status: newpending

Hello. deferred.then() seems to work 1.8.0. It is too difficult for me to create a test case. Could you make one on jsfiddle.net? Have a nice day!

Changed August 11, 2012 12:57AM UTC by anonymous comment:2

status: pendingnew

Thanks to respond.

I am sorry test case is late.

http://jsfiddle.net/9hxHx/3/

Good bye.

Changed August 11, 2012 01:39AM UTC by dmethvin comment:3

resolution: → worksforme
status: newclosed

In jQuery 1.8, .then() returns a new promise and not the original Deferred.

http://bugs.jquery.com/ticket/11010

You should store the original Deferred and resolve that.

http://jsfiddle.net/dmethvin/9hxHx/5/

Changed August 13, 2012 04:50PM UTC by jaubourg comment:4

Or, alternatively, use done and fail that are still returning the current object.