Skip to content

Commit

Permalink
Removing unnecessary argument type check for boolean hook
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed May 13, 2011
1 parent bc82ff0 commit cf70249
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/attributes.js
Expand Up @@ -317,8 +317,7 @@ jQuery.extend({

if ( !hooks ) {
// Use boolHook for boolean attributes
if ( rboolean.test( name ) &&
(typeof value === "boolean" || value === undefined || value.toLowerCase() === name.toLowerCase()) ) {
if ( rboolean.test( name ) ) {

hooks = boolHook;

Expand Down

0 comments on commit cf70249

Please sign in to comment.