aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-07-31 02:59:53 +0000
committerJohn Resig <jeresig@gmail.com>2007-07-31 02:59:53 +0000
commit6b0d3bb273f09910921ed84539de06c2e7ecd19b (patch)
treeab670da3506c350d7a789d3d19a14ef5ea188dc3 /src/ajax
parent4ae80a1e2cfe7445501e8f365d72417014cf1acb (diff)
downloadjquery-6b0d3bb273f09910921ed84539de06c2e7ecd19b.tar.gz
jquery-6b0d3bb273f09910921ed84539de06c2e7ecd19b.zip
Brought back jQuery.globalEval(), fixing bug #1425.
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js
index 645caf72e..392ea16ef 100644
--- a/src/ajax/ajax.js
+++ b/src/ajax/ajax.js
@@ -765,7 +765,7 @@ jQuery.extend({
// If the type is "script", eval it in global context
if ( type == "script" )
- (new Function( data ))();
+ jQuery.globalEval( data );
// Get the JavaScript object, if JSON is used.
if ( type == "json" )