X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=52a5a22cc3187a68c40728e81f53191618cc6b75;hb=bca576550249e9b79b1097669dff6d4ddd0d65cf;hp=47f243e55a4492f0126835a602b627132e45cf27;hpb=c34a62f8abbd9598e7a6647754c449ce92418b3a;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 47f243e..52a5a22 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -1,3 +1,5 @@ +(function( jQuery ) { + var jsc = jQuery.now(), rscript = //gi, rselectTextarea = /select|textarea/i, @@ -484,7 +486,7 @@ jQuery.extend({ // Send the data try { - xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null ); + xhr.send( (type !== "GET" && s.data) || null ); } catch( sendError ) { jQuery.ajax.handleError( s, xhr, null, e ); @@ -686,3 +688,5 @@ jQuery.extend( jQuery.ajax, { // For backwards compatibility jQuery.extend( jQuery.ajax ); + +})( jQuery );