Skip to content
Permalink
Browse files

Make sure that the script is removed only if it's actually in the pag…

…e still. Fixes #4934.
  • Loading branch information
jeresig committed Jul 22, 2009
1 parent 4e8f0c9 commit fe80b5af45049d1c8d10682eb1075f838d52a045
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ajax.js
@@ -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 );
}
}
};
}

0 comments on commit fe80b5a

Please sign in to comment.
You can’t perform that action at this time.