Removing unnecessary argument type check for boolean hook

1.7/enhancement_8685
timmywil 2011-05-13 13:47:44 -04:00
parent bc82ff0ff9
commit cf702496ee
1 changed files with 1 additions and 2 deletions

View File

@ -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;