Skip to content

Commit f6de5a9

Browse files
committedApr 27, 2015
Core: Align branches: remove an unused variable, add comments
Closes gh-2233
1 parent 002240a commit f6de5a9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

Diff for: ‎src/ajax/script.js

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jQuery.ajaxTransport( "script", function( s ) {
5151
}
5252
}
5353
);
54+
55+
// Use native DOM manipulation to avoid our domManip AJAX trickery
5456
document.head.appendChild( script[ 0 ] );
5557
},
5658
abort: function() {

Diff for: ‎src/attributes/attr.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ define([
66
"../selector"
77
], function( jQuery, rnotwhite, access, support ) {
88

9-
var nodeHook, boolHook,
9+
var boolHook,
1010
attrHandle = jQuery.expr.attrHandle;
1111

1212
jQuery.fn.extend({
@@ -41,7 +41,7 @@ jQuery.extend({
4141
if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
4242
name = name.toLowerCase();
4343
hooks = jQuery.attrHooks[ name ] ||
44-
( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
44+
( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
4545
}
4646

4747
if ( value !== undefined ) {

Diff for: ‎src/css/support.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ define([
1010
container = document.createElement( "div" ),
1111
div = document.createElement( "div" );
1212

13+
// Finish early in limited (non-browser) environments
1314
if ( !div.style ) {
1415
return;
1516
}

0 commit comments

Comments
 (0)