Skip to content

Commit

Permalink
Added feature jquery#1934 by allowing script.charset to be set throug…
Browse files Browse the repository at this point in the history
…h an optional 'scriptCharset' ajax option.
  • Loading branch information
davids549 committed Dec 15, 2007
1 parent b264f78 commit 4e339ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 4e339ef

Please sign in to comment.