diff --git a/ajax/ajax.js b/ajax/ajax.js index 1960150e3..6f289bbd2 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);