Commit cf702496 authored by timmywil's avatar timmywil

Removing unnecessary argument type check for boolean hook

parent bc82ff0f
...@@ -317,8 +317,7 @@ jQuery.extend({ ...@@ -317,8 +317,7 @@ jQuery.extend({
if ( !hooks ) { if ( !hooks ) {
// Use boolHook for boolean attributes // Use boolHook for boolean attributes
if ( rboolean.test( name ) && if ( rboolean.test( name ) ) {
(typeof value === "boolean" || value === undefined || value.toLowerCase() === name.toLowerCase()) ) {
hooks = boolHook; hooks = boolHook;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment