Skip to content

Commit

Permalink
Core: Align branches: remove an unused variable, add comments
Browse files Browse the repository at this point in the history
Closes gh-2233
  • Loading branch information
mgol committed Apr 27, 2015
1 parent 002240a commit f6de5a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/ajax/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/attributes/attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define([
"../selector"
], function( jQuery, rnotwhite, access, support ) {

var nodeHook, boolHook,
var boolHook,
attrHandle = jQuery.expr.attrHandle;

jQuery.fn.extend({
Expand Down Expand Up @@ -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 ) {
Expand Down
1 change: 1 addition & 0 deletions src/css/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ define([
container = document.createElement( "div" ),
div = document.createElement( "div" );

// Finish early in limited (non-browser) environments
if ( !div.style ) {
return;
}
Expand Down

0 comments on commit f6de5a9

Please sign in to comment.