From: John Resig Date: Mon, 17 Jul 2006 04:57:07 +0000 (+0000) Subject: Added some memory leak protection. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;ds=sidebyside;h=a03b3fd3e4f44e123c0f5a22e0649604240fe9c3;p=jquery.git Added some memory leak protection. --- diff --git a/ajax/ajax.js b/ajax/ajax.js index 1960150..6f289bb 100644 --- a/ajax/ajax.js +++ b/ajax/ajax.js @@ -170,8 +170,12 @@ jQuery.extend({ // Process result if ( ret ) ret(xml); + + // Stop memory leaks + xml.onreadystatechange = function(){}; + xml = null; } - } + }; // Send the data xml.send(data);