Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stopped a memory leak on getScript calls. Fixes #3962.
  • Loading branch information
jeresig committed Feb 7, 2009
1 parent 2b7642c commit a894c60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ajax.js
Expand Up @@ -267,6 +267,9 @@ jQuery.extend({
done = true;
success();
complete();

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

0 comments on commit a894c60

Please sign in to comment.