Brought back jQuery.globalEval(), fixing bug #1425.
[jquery.git] / src / ajax / ajax.js
index 645caf7..392ea16 100644 (file)
@@ -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" )