git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for #4972. Dreamweaver CS4 crashes on offset module. Thanks mike.helgeson
[jquery.git]
/
src
/
ajax.js
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 );
+ }
}
};
}