aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-01-23 20:46:09 +0100
committerjaubourg <j@ubourg.net>2011-01-23 20:46:09 +0100
commitee22c8b34bb801f26cacc67a1a3a0ac595fe7928 (patch)
treee4869307e2b683783ceff5d5d15b66cb76863b57 /src/ajax
parentdd5bf421225d23bc8732a92ea82049859c0cd57a (diff)
downloadjquery-ee22c8b34bb801f26cacc67a1a3a0ac595fe7928.tar.gz
jquery-ee22c8b34bb801f26cacc67a1a3a0ac595fe7928.zip
More code style fixes.
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/jsonp.js5
-rw-r--r--src/ajax/script.js2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js
index 0588475b6..f5742d998 100644
--- a/src/ajax/jsonp.js
+++ b/src/ajax/jsonp.js
@@ -12,10 +12,9 @@ jQuery.ajaxSetup({
});
// Detect, normalize options and install callbacks for jsonp requests
-// (dataIsString is used internally)
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, dataIsString ) {
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, dataIsString /* internal */ ) {
- dataIsString = ( typeof( s.data ) === "string" );
+ dataIsString = ( typeof s.data === "string" );
if ( s.dataTypes[ 0 ] === "jsonp" ||
originalSettings.jsonpCallback ||
diff --git a/src/ajax/script.js b/src/ajax/script.js
index 37bd85b56..dfee86712 100644
--- a/src/ajax/script.js
+++ b/src/ajax/script.js
@@ -14,7 +14,7 @@ jQuery.ajaxSetup({
});
// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function(s) {
+jQuery.ajaxPrefilter( "script", function( s ) {
if ( s.cache === undefined ) {
s.cache = false;
}