diff options
author | John Resig <jeresig@gmail.com> | 2006-07-17 04:57:07 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-07-17 04:57:07 +0000 |
commit | a03b3fd3e4f44e123c0f5a22e0649604240fe9c3 (patch) | |
tree | 1c808ab59fbf5cdecff818489de3f630d42d873f | |
parent | 2d31381a5722719190be4a0dde630a0b9ea70fa5 (diff) | |
download | jquery-a03b3fd3e4f44e123c0f5a22e0649604240fe9c3.tar.gz jquery-a03b3fd3e4f44e123c0f5a22e0649604240fe9c3.zip |
Added some memory leak protection.
-rw-r--r-- | ajax/ajax.js | 6 |
1 files changed, 5 insertions, 1 deletions
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); |