]> source.dussan.org Git - jquery.git/commitdiff
Optimize for size instead of speed. 100/head
authorColin Snover <github.com@zetafleet.com>
Wed, 17 Nov 2010 20:50:05 +0000 (14:50 -0600)
committerColin Snover <github.com@zetafleet.com>
Wed, 17 Nov 2010 20:50:05 +0000 (14:50 -0600)
src/ajax.js

index 61b9c438efa1185dfb8f22efd79379afe7aa1efd..9dbb082fe3981ecdb6d19e95765c422500cca4e2 100644 (file)
@@ -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;