X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=ef4eb3e09ade88f5e419075ecb2ad6e7b72d4a50;hb=69e6e53555f21f07b534f1169298f7b33011bb4b;hp=547acc184f3901442d538f244e3ea38de24ab0b7;hpb=70b9aed422c34047299fe6e8934902fae61f2a3e;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 547acc1..ef4eb3e 100644 --- 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 ) {