documentcloud/backbone — Issue #789: model.destroy() not passing id params
Author: sgentile
Created: 2011-12-14 21:24:22+00:00
State: open

with emulateJSON and emulateHTTP off - I had to apply this fix:

// Ensure that we have the appropriate request data.
if (!params.data && model && (method == 'create' || method == 'update' || method == 'delete')) {
params.contentType = 'application/json';
params.data = JSON.stringify(model.toJSON());
}

(added method == 'delete')

otherwise, no params are sent with the DELETE call.

(It could be streamlined to only include the id)