Commit a03b3fd3 authored by John Resig's avatar John Resig

Added some memory leak protection.

parent 2d31381a
...@@ -170,8 +170,12 @@ jQuery.extend({ ...@@ -170,8 +170,12 @@ jQuery.extend({
// Process result // Process result
if ( ret ) ret(xml); if ( ret ) ret(xml);
// Stop memory leaks
xml.onreadystatechange = function(){};
xml = null;
} }
} };
// Send the data // Send the data
xml.send(data); xml.send(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment