Removed use of .trim() in globalEval, fixes #4036.
This commit is contained in:
parent
b16da9d762
commit
6b938e1c16
|
@ -627,9 +627,7 @@ jQuery.extend({
|
|||
|
||||
// Evalulates a script in a global context
|
||||
globalEval: function( data ) {
|
||||
data = jQuery.trim( data );
|
||||
|
||||
if ( data ) {
|
||||
if ( data && /\S/.test(data) ) {
|
||||
// Inspired by code by Andrea Giammarchi
|
||||
// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
|
||||
var head = document.getElementsByTagName("head")[0] || document.documentElement,
|
||||
|
|
Loading…
Reference in a new issue