Removing unnecessary argument type check for boolean hook

This commit is contained in:
timmywil 2011-05-13 13:47:44 -04:00
parent bc82ff0ff9
commit cf702496ee

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;