mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 08:24:59 -05:00
Make work wrapInner(fn) work consistently. Fixes #5799.
This commit is contained in:
@@ -77,6 +77,12 @@ jQuery.fn.extend({
|
||||
},
|
||||
|
||||
wrapInner: function( html ) {
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
return this.each(function(i) {
|
||||
jQuery(this).wrapInner( html.call(this, i) );
|
||||
});
|
||||
}
|
||||
|
||||
return this.each(function() {
|
||||
var self = jQuery( this ), contents = self.contents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user