Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12255 closed bug (worksforme)

"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!

Change History (4)

comment:1 Changed 7 years ago by dmethvin

Owner: set to 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!

comment:2 Changed 7 years ago by anonymous

Status: pendingnew

Thanks to respond. I am sorry test case is late.

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

Good bye.

comment:3 Changed 7 years ago by dmethvin

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/

comment:4 Changed 7 years ago by jaubourg

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

Note: See TracTickets for help on using tickets.