mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
Added some memory leak protection.
This commit is contained in:
parent
2d31381a57
commit
a03b3fd3e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user