Ticket #3552: wrapInner.diff
File wrapInner.diff, 566 bytes (added by , 13 years ago) |
---|
-
jquery/src/core.js
250 250 return this; 251 251 }, 252 252 253 wrapInner: function( html ) { 254 return this.each(function(){ 255 jQuery( this ).contents().wrapAll( html ); 256 }); 253 wrapInner: function( html ) { 254 return this.each(function(){ 255 this.firstChild 256 ? jQuery( this ).contents().wrapAll( html ) 257 : jQuery( this ).append(html); 258 }); 257 259 }, 258 260 259 261 wrap: function( html ) {