From: Timmy Willison Date: Wed, 11 Sep 2013 20:03:40 +0000 (-0500) Subject: Flip the switch on checkOn X-Git-Tag: 2.1.0-beta1~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb707d8bd0ccd40935a41f0814ff0b85a1e25c40;p=jquery.git Flip the switch on checkOn --- diff --git a/src/attributes/val.js b/src/attributes/val.js index 0e7e7ce43..65d772cc2 100644 --- a/src/attributes/val.js +++ b/src/attributes/val.js @@ -147,7 +147,7 @@ jQuery.each([ "radio", "checkbox" ], function() { } } }; - if ( support.checkOn ) { + if ( !support.checkOn ) { jQuery.valHooks[ this ].get = function( elem ) { // Support: Webkit // "" is returned instead of "on" if a value isn't specified