git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added an improvement to quickExpr and some more tests for jQuery('html'). Fixes ...
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
9a84302
..
c6b8d0f
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;
// Handle memory leak in IE
script.onload = script.onreadystatechange = null;
- head.removeChild( script );
+ if ( head && script.parentNode ) {
+ head.removeChild( script );
+ }
}
};
}
}
};
}
@@
-449,7
+451,7
@@
jQuery.extend({
// Send the data
try {
// Send the data
try {
- xhr.send( type === "POST" ? s.data : null );
+ xhr.send( type === "POST" || type === "PUT" ? s.data : null );
} catch(e) {
jQuery.handleError(s, xhr, null, e);
}
} catch(e) {
jQuery.handleError(s, xhr, null, e);
}