From cf702496ee28830f3488ed3f1c3940cfbb2dfa8f Mon Sep 17 00:00:00 2001 From: timmywil Date: Fri, 13 May 2011 13:47:44 -0400 Subject: [PATCH] Removing unnecessary argument type check for boolean hook --- src/attributes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/attributes.js b/src/attributes.js index ac94081c..af1660fa 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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;