Skip to content
Permalink
Browse files
Added some memory leak protection.
  • Loading branch information
jeresig committed Jul 17, 2006
1 parent 2d31381 commit a03b3fd3e4f44e123c0f5a22e0649604240fe9c3
Showing with 5 additions and 1 deletion.
  1. +5 −1 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);

0 comments on commit a03b3fd

Please sign in to comment.