]> source.dussan.org Git - jquery.git/commitdiff
Removing unnecessary argument type check for boolean hook
authortimmywil <tim.willison@thisismedium.com>
Fri, 13 May 2011 17:47:44 +0000 (13:47 -0400)
committertimmywil <tim.willison@thisismedium.com>
Fri, 13 May 2011 17:47:44 +0000 (13:47 -0400)
src/attributes.js

index ac94081c695452fedafb2a0a28ab89273f5c714c..af1660fa68299a8f501c3c9d11914388d230e0b7 100644 (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;