git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d31381
)
Added some memory leak protection.
author
John Resig
<jeresig@gmail.com>
Mon, 17 Jul 2006 04:57:07 +0000
(
04:57
+0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 17 Jul 2006 04:57:07 +0000
(
04:57
+0000)
ajax/ajax.js
patch
|
blob
|
history
diff --git
a/ajax/ajax.js
b/ajax/ajax.js
index
1960150
..
6f289bb
100644
(file)
--- 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);