]> source.dussan.org Git - jquery.git/commitdiff
Core: Align branches: remove an unused variable, add comments
authorMichał Gołębiowski <m.goleb@gmail.com>
Sun, 26 Apr 2015 15:22:46 +0000 (17:22 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 27 Apr 2015 18:19:05 +0000 (20:19 +0200)
Closes gh-2233

src/ajax/script.js
src/attributes/attr.js
src/css/support.js

index f5a1f00a42b93bed547033d53e03bb4f2b9f86e0..ede55170878bf20dba69bf9a32950c7fdfc02cfc 100644 (file)
@@ -51,6 +51,8 @@ jQuery.ajaxTransport( "script", function( s ) {
                                                }
                                        }
                                );
+
+                               // Use native DOM manipulation to avoid our domManip AJAX trickery
                                document.head.appendChild( script[ 0 ] );
                        },
                        abort: function() {
index 282893ea9510086e332228273be962e82643a3ed..bec86c1f5ae30cebbb79e213e1d180d106eb4303 100644 (file)
@@ -6,7 +6,7 @@ define([
        "../selector"
 ], function( jQuery, rnotwhite, access, support ) {
 
-var nodeHook, boolHook,
+var boolHook,
        attrHandle = jQuery.expr.attrHandle;
 
 jQuery.fn.extend({
@@ -41,7 +41,7 @@ jQuery.extend({
                if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
                        name = name.toLowerCase();
                        hooks = jQuery.attrHooks[ name ] ||
-                               ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
+                               ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
                }
 
                if ( value !== undefined ) {
index fde7353181f79258686de47e8d6a1baeec5ca798..e6dba391f896b7ad5ef1fad6792901c69f64a42a 100644 (file)
@@ -10,6 +10,7 @@ define([
                container = document.createElement( "div" ),
                div = document.createElement( "div" );
 
+       // Finish early in limited (non-browser) environments
        if ( !div.style ) {
                return;
        }