Removing unnecessary argument type check for boolean hook
This commit is contained in:
parent
bc82ff0ff9
commit
cf702496ee
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue