Skip to content
Permalink
Browse files

Stopped a memory leak on getScript calls. Fixes #3962.

  • Loading branch information
jeresig committed Feb 7, 2009
1 parent 2b7642c commit a894c604895efb29e9b0937301cc404ad72e1738
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ajax.js
@@ -267,6 +267,9 @@ jQuery.extend({
done = true;
success();
complete();

// Handle memory leak in IE
script.onload = script.onreadystatechange = null;
head.removeChild( script );
}
};

0 comments on commit a894c60

Please sign in to comment.
You can’t perform that action at this time.