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

This commit is contained in:
John Resig 2009-02-07 16:57:59 +00:00
parent 2b7642cff0
commit a894c60489

View file

@ -267,6 +267,9 @@ jQuery.extend({
done = true;
success();
complete();
// Handle memory leak in IE
script.onload = script.onreadystatechange = null;
head.removeChild( script );
}
};