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:
033a4c4
)
For JSON and script requests, set the scriptCharset before the url so IE won't interp...
author
dmethvin
<dave.methvin@gmail.com>
Sun, 27 Jun 2010 01:16:39 +0000
(09:16 +0800)
committer
John Resig
<jeresig@gmail.com>
Fri, 24 Sep 2010 21:01:31 +0000
(
05:01
+0800)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
897d424
..
17cccf7
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-300,10
+300,10
@@
jQuery.extend({
if ( s.dataType === "script" && type === "GET" && remote ) {
var head = document.getElementsByTagName("head")[0] || document.documentElement;
var script = document.createElement("script");
- script.src = s.url;
if ( s.scriptCharset ) {
script.charset = s.scriptCharset;
}
+ script.src = s.url;
// Handle Script loading
if ( !jsonp ) {