Commit fe80b5af authored by John Resig's avatar John Resig

Make sure that the script is removed only if it's actually in the page still. Fixes #4934.

parent 4e8f0c93
......@@ -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 );
}
}
};
}
......
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