Permalink
Browse files

Optimize for size instead of speed.

  • Loading branch information...
1 parent 2a0c7d7 commit c04500a8347f381b069c036d9ac24b591b3fc6b7 @csnover csnover committed Nov 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
View
2 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;

0 comments on commit c04500a

Please sign in to comment.