From: Colin Snover Date: Wed, 17 Nov 2010 20:50:05 +0000 (-0600) Subject: Optimize for size instead of speed. X-Git-Tag: 1.5b1~116^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F100%2Fhead;p=jquery.git Optimize for size instead of speed. --- diff --git a/src/ajax.js b/src/ajax.js index 61b9c438e..9dbb082fe 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;