X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fajax.js;h=9dbb082fe3981ecdb6d19e95765c422500cca4e2;hp=61b9c438efa1185dfb8f22efd79379afe7aa1efd;hb=c04500a8347f381b069c036d9ac24b591b3fc6b7;hpb=2a0c7d702b83a6b2e40eb79a5d6ea94d74f3090d diff --git a/src/ajax.js b/src/ajax.js index 61b9c43..9dbb082 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -201,7 +201,7 @@ jQuery.extend({ // toString fixes people passing a window.location or // document.location to $.ajax, which worked in 1.4.2 and // earlier (bug #7531). It should be removed in 1.5. - s.url = s.url.toString().replace( rhash, "" ); + s.url = ("" + s.url).replace( rhash, "" ); // Use original (not extended) context object if it was provided s.context = origSettings && origSettings.context != null ? origSettings.context : s;