Bug Tracker

Modify

Ticket #12255 (closed bug: worksforme)

Opened 9 months ago

Last modified 9 months ago

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

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

comment:1 Changed 9 months ago by dmethvin

  • Owner set to anonymous
  • Status changed from new to pending

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 9 months ago by anonymous

  • Status changed from pending to new

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

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

Good bye.

comment:3 Changed 9 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

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 9 months ago by jaubourg

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

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.