]> source.dussan.org Git - jquery.git/commitdiff
Flip the switch on checkOn
authorTimmy Willison <timmywillisn@gmail.com>
Wed, 11 Sep 2013 20:03:40 +0000 (15:03 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Wed, 11 Sep 2013 20:03:40 +0000 (15:03 -0500)
src/attributes/val.js

index 0e7e7ce439526dcb819d571f0f2c2d355c34fd93..65d772cc2d6675af236c5585d0ee854ddda309e2 100644 (file)
@@ -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