git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a0c7d7
)
Optimize for size instead of speed.
author
Colin Snover
<github.com@zetafleet.com>
Wed, 17 Nov 2010 20:50:05 +0000
(14:50 -0600)
committer
Colin Snover
<github.com@zetafleet.com>
Wed, 17 Nov 2010 20:50:05 +0000
(14:50 -0600)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
61b9c43
..
9dbb082
100644
(file)
--- 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;