aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-13 13:47:44 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-13 13:47:44 -0400
commitcf702496ee28830f3488ed3f1c3940cfbb2dfa8f (patch)
tree712d1be8a2b4bb625deba0172670b8a5e65a3f15 /src
parentbc82ff0ff9faba5e7e8c3e40f1351fb5e3fc1a41 (diff)
downloadjquery-cf702496ee28830f3488ed3f1c3940cfbb2dfa8f.tar.gz
jquery-cf702496ee28830f3488ed3f1c3940cfbb2dfa8f.zip
Removing unnecessary argument type check for boolean hook
Diffstat (limited to 'src')
-rw-r--r--src/attributes.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js
index ac94081c6..af1660fa6 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -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;