aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-19 22:33:55 +0400
committerOleg <markelog@gmail.com>2012-12-24 03:03:27 +0400
commit2378438a9773254a49ffe4d42cc195f7b35b1a29 (patch)
treed015eb815da963b172e646adcc140497f355c29f
parent28f6fcb763266ecd476274f430cce0ef625f8b16 (diff)
downloadjquery-2378438a9773254a49ffe4d42cc195f7b35b1a29.tar.gz
jquery-2378438a9773254a49ffe4d42cc195f7b35b1a29.zip
Code style changes
-rw-r--r--src/manipulation.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index d3bc7d027..9a60d1089 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -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 ) );