Permalink
Browse files

Removing unnecessary argument type check for boolean hook

  • Loading branch information...
timmywil
timmywil committed May 13, 2011
1 parent bc82ff0 commit cf702496ee28830f3488ed3f1c3940cfbb2dfa8f
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/attributes.js
View
@@ -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;

0 comments on commit cf70249

Please sign in to comment.