aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-01-11 15:57:45 -0500
committerjeresig <jeresig@gmail.com>2010-01-11 15:57:45 -0500
commit36a98b95c2f3f7617ddf51beec7515acf67d98ba (patch)
treebbbaeb579109584adf91aedbcff208c5e11891f1 /src
parent366039a6f05ffa09630e95be604e3f4f26a33bd6 (diff)
downloadjquery-36a98b95c2f3f7617ddf51beec7515acf67d98ba.tar.gz
jquery-36a98b95c2f3f7617ddf51beec7515acf67d98ba.zip
Make sure we use detach instead of remove in replaceWith. Fixes #5785.
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 9ed22baaf..f2f6c7de6 100644
--- 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 );