mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 18:48:19 -05:00
Make sure that the script is removed only if it's actually in the page still. Fixes #4934.
This commit is contained in:
@@ -296,7 +296,9 @@ jQuery.extend({
|
||||
|
||||
// Handle memory leak in IE
|
||||
script.onload = script.onreadystatechange = null;
|
||||
head.removeChild( script );
|
||||
if ( head && script.parentNode ) {
|
||||
head.removeChild( script );
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user