aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-19 23:35:25 +0400
committerOleg <markelog@gmail.com>2012-12-24 03:03:28 +0400
commite9ea6679b250429f430ff5ece6dab3cde71bc11d (patch)
treeab73cf4d7a76ccbc0cf2e2ca989409d28ee9cdd6 /src/manipulation.js
parent76bde01be89ab8d985c5af91a023e2db65e85867 (diff)
downloadjquery-e9ea6679b250429f430ff5ece6dab3cde71bc11d.tar.gz
jquery-e9ea6679b250429f430ff5ece6dab3cde71bc11d.zip
Change "isFunc" variable to "isFunction"
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 47fa09f71..3a3dff165 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -83,10 +83,10 @@ jQuery.fn.extend({
},
wrap: function( html ) {
- var isFunc = jQuery.isFunction( html );
+ var isFunction = jQuery.isFunction( html );
return this.each(function( i ) {
- jQuery( this ).wrapAll( isFunc ? html.call(this, i) : html );
+ jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
});
},
@@ -197,7 +197,6 @@ jQuery.fn.extend({
try {
for (; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
elem = this[ i ] || {};
if ( elem.nodeType === 1 ) {
jQuery.cleanData( getAll( elem, false ) );
@@ -208,7 +207,7 @@ jQuery.fn.extend({
elem = 0;
// If using innerHTML throws an exception, use the fallback method
- } catch(e) {}
+ } catch( e ) {}
}
if ( elem ) {
@@ -218,11 +217,11 @@ jQuery.fn.extend({
},
replaceWith: function( value ) {
- var isFunc = jQuery.isFunction( value );
+ var isFunction = jQuery.isFunction( value );
// Make sure that the elements are removed from the DOM before they are inserted
// this can help fix replacing a parent with child elements
- if ( !isFunc && typeof value !== "string" ) {
+ if ( !isFunction && typeof value !== "string" ) {
value = jQuery( value ).not( this ).detach();
}