twinstone / tdi

Turbocharged DOM Infusion
Apache License 2.0
6 stars 1 forks source link

Return jqXHR object, fixes #2 #3

Closed mishal closed 8 years ago

mishal commented 8 years ago

I'm not sure if the return of jqXHR should bubble in the API, the TDI.Ajax.Request.send method is used in:

and possible other places.

twinstone commented 8 years ago

I think both Request methods (sendForm and send) should return the jqXHR object if possible (sendForm does not always use XHR, if it uses the iframe method, it should return null). And then the TDI.Ajax.send method should pass this value on.

I will update it this way.