Added feature #1934 by allowing script.charset to be set through an optional 'scriptCharset' ajax option.

This commit is contained in:
David Serduke 2007-12-15 23:30:34 +00:00
parent b264f789b9
commit 4e339ef557

View file

@ -224,6 +224,8 @@ jQuery.extend({
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
script.src = s.url;
if (s.scriptCharset)
script.charset = s.scriptCharset;
// Handle Script loading
if ( !jsonp ) {