git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure we use detach instead of remove in replaceWith. Fixes #5785.
[jquery.git]
/
src
/
manipulation.js
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
9ed22ba
..
f2f6c7d
100644
(file)
--- a/
src/manipulation.js
+++ b/
src/manipulation.js
@@
-216,7
+216,7
@@
jQuery.fn.extend({
return this.each(function() {
var next = this.nextSibling, parent = this.parentNode;
- jQuery(this).remove();
+ jQuery(this).detach();
if ( next ) {
jQuery(next).before( value );