git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added some memory leak protection.
[jquery.git]
/
ajax
/
ajax.js
diff --git
a/ajax/ajax.js
b/ajax/ajax.js
index
4b062e9
..
6f289bb
100644
(file)
--- a/
ajax/ajax.js
+++ b/
ajax/ajax.js
@@
-71,7
+71,7
@@
new function(){
return this.bind(o, f);
};
}
-}
+};
jQuery.extend({
@@
-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);