jupiterjs/jquerymx — Issue #94: It is impossible to abort Model's server request
Author: andrei-s
Created: 2011-11-18 19:06:18+00:00
State: open

I noticed that Model's standard methods, for instance, save(), return deferred.promise() object (it is makeRequest function in model.js file). Thus, it is not possible to cancel server request in progress using returned object.
As a proposed solution (thanks to Justin Meyer):

"Essentially, update / create / destroy should be returning the jqXHR object. Where update / create / destroyed is called by makeRequest:

https://github.com/jupiterjs/jquerymx/blob/master/model/model.js#L160

It should be getting back the jqXHR. It should make an abort method for its deferred call the jqXHR object's deferred."

Thank you,

Andrei