[Pkg-javascript-commits] [backbone] 05/28: Ajax.processData is left as the default if emulateJSON is set to true
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:01:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.3
in repository backbone.
commit b85c116caf65a654ff2626841262b2a005edd092
Author: Devin Hunt <devinhunt at gmail.com>
Date: Wed Jul 27 10:59:30 2011 +0100
Ajax.processData is left as the default if emulateJSON is set to true
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index 15c3ad3..cd777c4 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1070,7 +1070,7 @@
}
// Don't process data on a non-GET request.
- if (params.type !== 'GET') {
+ if (params.type !== 'GET' && ! Backbone.emulateJSON) {
params.processData = false;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list