mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removing unnecessary argument type check for boolean hook
This commit is contained in:
parent
bc82ff0ff9
commit
cf702496ee
@ -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 New Issue
Block a user