Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#7250 closed enhancement (fixed)

Retain the argument in the Deferred chain

Reported by: Neil Roberts Owned by: James Burke
Priority: high Milestone: 1.2
Component: Core Version: 1.1.1
Keywords: Cc: James Burke
Blocked By: Blocking:

Description

If a callback returns undefined, retain the passed argument.

eg:

var ret = f(res); if(typeof ret != "undefined"){

res = ret;

}

Change History (4)

comment:1 Changed 11 years ago by James Burke

Owner: changed from alex to James Burke

comment:2 Changed 11 years ago by James Burke

Resolution: fixed
Status: newclosed

(In [14580]) Fixes #7250: reuse previous response if no new response from callback. Thanks pottedmeat!

comment:3 Changed 11 years ago by Neil Roberts

(In [14710]) Refs #7250. Ensure that the first callback in the Deferred chain for an XHR operation (which processes the returned XHR data) prevents the received argument from being passed to the next callback.

comment:4 Changed 10 years ago by Adam Peller

(In [16566]) Change console.debug call to console.error, refs #2924, fixes #8583. (Do we really need a console message here at all if the error can be detected programatically? Style change refs #7250

Note: See TracTickets for help on using tickets.