]> source.dussan.org Git - jquery.git/commitdiff
Code style changes
authorOleg <markelog@gmail.com>
Wed, 19 Dec 2012 18:33:55 +0000 (22:33 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:03:27 +0000 (03:03 +0400)
src/manipulation.js

index d3bc7d02796c9b635eda190eeb82898fbb7b238f..9a60d1089e6cba5c1ffda5bc9e766f08946a3e2f 100644 (file)
@@ -64,8 +64,8 @@ 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( i ) {
+                               jQuery( this ).wrapInner( html.call(this, i) );
                        });
                }
 
@@ -83,10 +83,10 @@ jQuery.fn.extend({
        },
 
        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 );
                });
        },
 
@@ -132,10 +132,9 @@ jQuery.fn.extend({
 
        // 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 ) );