Added some memory leak protection.
This commit is contained in:
parent
2d31381a57
commit
a03b3fd3e4
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue