]> source.dussan.org Git - jquery.git/commitdiff
Change "isFunc" variable to "isFunction"
authorOleg <markelog@gmail.com>
Wed, 19 Dec 2012 19:35:25 +0000 (23:35 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:03:28 +0000 (03:03 +0400)
src/manipulation.js

index 47fa09f71fe8f53ddce52669b79d27bccf9069ac..3a3dff165d9437e8b637c2386be2b51e3a0495ec 100644 (file)
@@ -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();
                }