git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding in .unwrap() support, thanks to Ben Alman! Fixes #5191.
[jquery.git]
/
src
/
manipulation.js
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
547acc1
..
ef4eb3e
100644
(file)
--- a/
src/manipulation.js
+++ b/
src/manipulation.js
@@
-90,6
+90,14
@@
jQuery.fn.extend({
});
},
});
},
+ unwrap: function() {
+ return this.parent().each(function(){
+ if ( !jQuery.nodeName( this, "body" ) ) {
+ jQuery( this ).replaceWith( this.childNodes );
+ }
+ }).end();
+ },
+
append: function() {
return this.domManip(arguments, true, function(elem){
if ( this.nodeType === 1 ) {
append: function() {
return this.domManip(arguments, true, function(elem){
if ( this.nodeType === 1 ) {