aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-08-16 16:45:18 +0200
committerjaubourg <j@ubourg.net>2012-08-16 16:45:18 +0200
commitb292c4c2df673d17d8c720e13d4d81ecae4ec499 (patch)
tree72a70205b7d98a3716e45255beecd792070456ac /src/ajax.js
parentaa1350d9e29571a82d09bb7a2eac4396901daa77 (diff)
downloadjquery-b292c4c2df673d17d8c720e13d4d81ecae4ec499.tar.gz
jquery-b292c4c2df673d17d8c720e13d4d81ecae4ec499.zip
Calling load with null as the data parameter now properly issues a GET request, not a POST request. Unit tests added. Fixes #12234.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index f3887ff44..cfbfcd527 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -170,7 +170,7 @@ jQuery.fn.load = function( url, params, callback ) {
params = undefined;
// Otherwise, build a param string
- } else if ( typeof params === "object" ) {
+ } else if ( params && typeof params === "object" ) {
type = "POST";
}