From: David Serduke Date: Fri, 30 Nov 2007 02:42:48 +0000 (+0000) Subject: Removed comments and code related to Safari being unable to do a sync global eval... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=aca1cc367782f8d038a13794a46aec6fd825eb45;hp=4b8f6cdc86c395fb92c7d50e8642118963232af4;p=jquery.git Removed comments and code related to Safari being unable to do a sync global eval. With the new globalEval() code that should no longer be a problem. --- diff --git a/src/ajax.js b/src/ajax.js index 6821cec..ba3aa96 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -52,10 +52,7 @@ jQuery.fn.extend({ // If not, just inject the full result res.responseText ); - // Add delay to account for Safari's delay in globalEval - setTimeout(function(){ - self.each( callback, [res.responseText, status, res] ); - }, 13); + self.each( callback, [res.responseText, status, res] ); } }); return this; diff --git a/src/core.js b/src/core.js index 62e41c9..0bf3530 100644 --- a/src/core.js +++ b/src/core.js @@ -591,7 +591,6 @@ jQuery.extend({ }, // Evalulates a script in a global context - // Evaluates Async. in Safari 2 :-( globalEval: function( data ) { data = jQuery.trim( data );