Stopped a memory leak on getScript calls. Fixes #3962.
This commit is contained in:
parent
2b7642cff0
commit
a894c60489
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue