diff options
author | jaubourg <j@ubourg.net> | 2012-08-16 16:45:18 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-08-16 16:45:18 +0200 |
commit | b292c4c2df673d17d8c720e13d4d81ecae4ec499 (patch) | |
tree | 72a70205b7d98a3716e45255beecd792070456ac /src/ajax.js | |
parent | aa1350d9e29571a82d09bb7a2eac4396901daa77 (diff) | |
download | jquery-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.js | 2 |
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"; } |