aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-04-26 17:22:46 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-04-27 20:19:05 +0200
commitf6de5a90ddde29e9096c2e45b9da21e65882b7c0 (patch)
tree798916d1a3a620eb03c3c95686859a694c97c0a6 /src
parent002240a6eb1cee2fcd886d5cf44893eb67f246f1 (diff)
downloadjquery-f6de5a90ddde29e9096c2e45b9da21e65882b7c0.tar.gz
jquery-f6de5a90ddde29e9096c2e45b9da21e65882b7c0.zip
Core: Align branches: remove an unused variable, add comments
Closes gh-2233
Diffstat (limited to 'src')
-rw-r--r--src/ajax/script.js2
-rw-r--r--src/attributes/attr.js4
-rw-r--r--src/css/support.js1
3 files changed, 5 insertions, 2 deletions
diff --git a/src/ajax/script.js b/src/ajax/script.js
index f5a1f00a4..ede551708 100644
--- a/src/ajax/script.js
+++ b/src/ajax/script.js
@@ -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() {
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index 282893ea9..bec86c1f5 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -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 ) {
diff --git a/src/css/support.js b/src/css/support.js
index fde735318..e6dba391f 100644
--- a/src/css/support.js
+++ b/src/css/support.js
@@ -10,6 +10,7 @@ define([
container = document.createElement( "div" ),
div = document.createElement( "div" );
+ // Finish early in limited (non-browser) environments
if ( !div.style ) {
return;
}