From a03b3fd3e4f44e123c0f5a22e0649604240fe9c3 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 17 Jul 2006 04:57:07 +0000 Subject: [PATCH] Added some memory leak protection. --- ajax/ajax.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);