X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax%2Fajax.js;h=4fb63c0fd2c1990134278052e9fd1df0366f9e78;hb=5ed992d5f590a06429859c6b5c511fce07a33b28;hp=e65a0f77666f9c4d111b3e32b9d0b57e6930915e;hpb=f63242f068ccbc8006cd18d84ec97055c87ac3cc;p=jquery.git diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index e65a0f7..4fb63c0 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -408,9 +408,6 @@ jQuery.extend({ }); }, - // timeout (ms) - //timeout: 0, - /** * Set the timeout in milliseconds of all AJAX requests to a specific amount of time. * This will make all future AJAX requests timeout after a specified amount @@ -788,7 +785,7 @@ jQuery.extend({ // Get the JavaScript object, if JSON is used. if ( type == "json" ) - eval( "data = " + data ); + data = eval("(" + data + ")"); // evaluate scripts within html if ( type == "html" )