Commit 2378438a authored by Oleg's avatar Oleg

Code style changes

parent 28f6fcb7
...@@ -64,8 +64,8 @@ jQuery.fn.extend({ ...@@ -64,8 +64,8 @@ jQuery.fn.extend({
wrapInner: function( html ) { wrapInner: function( html ) {
if ( jQuery.isFunction( html ) ) { if ( jQuery.isFunction( html ) ) {
return this.each(function(i) { return this.each(function( i ) {
jQuery(this).wrapInner( html.call(this, i) ); jQuery( this ).wrapInner( html.call(this, i) );
}); });
} }
...@@ -83,10 +83,10 @@ jQuery.fn.extend({ ...@@ -83,10 +83,10 @@ jQuery.fn.extend({
}, },
wrap: function( html ) { wrap: function( html ) {
var isFunction = jQuery.isFunction( html ); var isFunc = jQuery.isFunction( html );
return this.each(function(i) { return this.each(function( i ) {
jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); jQuery( this ).wrapAll( isFunc ? html.call(this, i) : html );
}); });
}, },
...@@ -132,10 +132,9 @@ jQuery.fn.extend({ ...@@ -132,10 +132,9 @@ jQuery.fn.extend({
// keepData is for internal use only--do not document // keepData is for internal use only--do not document
remove: function( selector, keepData ) { remove: function( selector, keepData ) {
var elem, var elem, i = 0;
i = 0;
for ( ; (elem = this[i]) != null; i++ ) { for ( ; ( elem = this[ i ] ) != null; i++ ) {
if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) { if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {
if ( !keepData && elem.nodeType === 1 ) { if ( !keepData && elem.nodeType === 1 ) {
jQuery.cleanData( getAll( elem ) ); jQuery.cleanData( getAll( elem ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment