diff options
author | jeresig <jeresig@gmail.com> | 2010-01-11 15:57:45 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-11 15:57:45 -0500 |
commit | 36a98b95c2f3f7617ddf51beec7515acf67d98ba (patch) | |
tree | bbbaeb579109584adf91aedbcff208c5e11891f1 /src | |
parent | 366039a6f05ffa09630e95be604e3f4f26a33bd6 (diff) | |
download | jquery-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.js | 2 |
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 ); |