aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core.js b/src/core.js
index 55ed4317f..5661a4e7a 100644
--- a/src/core.js
+++ b/src/core.js
@@ -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 + ";" );
}
},