Commit f300c5c2 authored by Rick Waldron's avatar Rick Waldron

2.0: Reduce globalEval

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent 155dbad0
......@@ -504,16 +504,10 @@ jQuery.extend({
noop: function() {},
// Evaluates a script in a global context
// Workarounds based on findings by Jim Driscoll
// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
globalEval: function( data ) {
if ( data && jQuery.trim( data ) ) {
// We use execScript on Internet Explorer
// We use an anonymous function so that context is window
// rather than jQuery in Firefox
( window.execScript || function( data ) {
window[ "eval" ].call( window, data );
} )( data );
var indirect = eval;
if ( jQuery.trim( data ) ) {
indirect( data + ";" );
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment