git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e8f0c9
)
Make sure that the script is removed only if it's actually in the page still. Fixes...
author
John Resig
<jeresig@gmail.com>
Wed, 22 Jul 2009 14:38:21 +0000
(14:38 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 22 Jul 2009 14:38:21 +0000
(14:38 +0000)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
9a84302
..
adae6ae
100644
(file)
--- a/
src/ajax.js
+++ b/
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 );
+ }
}
};
}