[AJAX] recordsResponse -> options.done?
10xSebastian opened this issue · comments
Is there a reason why recordResponse takes options and calls:
options.done?.apply(@record)
but recordsResponse doesnt?
I prefer having control about ajax requests like:
Model.create data, done: => done
but this currently doesnt work with fetch
Model.fetch data, done: => done
the only way it works is using ajaxFetch directly
Model.ajaxFetch(data).done => done
It is a problem. We've been intending to rework things to have more consistency and have all things that might fire ajax accept options and return promise objects. just haven't gotten around to actually doing it. that and the way find() works are the breaking api changes I have in mind for a spine 1.3