This commit is contained in:
Jason Davies
2011-03-09 18:37:48 +00:00
parent 83250a5a62
commit ee2ec9213e

View File

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