Commit a894c604 authored by John Resig's avatar John Resig

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

parent 2b7642cf
...@@ -267,6 +267,9 @@ jQuery.extend({ ...@@ -267,6 +267,9 @@ jQuery.extend({
done = true; done = true;
success(); success();
complete(); complete();
// Handle memory leak in IE
script.onload = script.onreadystatechange = null;
head.removeChild( script ); head.removeChild( script );
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment