wrapInner: function( html ) {
if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
+ return this.each(function( i ) {
+ jQuery( this ).wrapInner( html.call(this, i) );
});
}
},
wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
+ var isFunc = jQuery.isFunction( html );
- return this.each(function(i) {
- jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
+ return this.each(function( i ) {
+ jQuery( this ).wrapAll( isFunc ? html.call(this, i) : html );
});
},
// keepData is for internal use only--do not document
remove: function( selector, keepData ) {
- var elem,
- i = 0;
+ var elem, i = 0;
- for ( ; (elem = this[i]) != null; i++ ) {
+ for ( ; ( elem = this[ i ] ) != null; i++ ) {
if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {
if ( !keepData && elem.nodeType === 1 ) {
jQuery.cleanData( getAll( elem ) );