Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove unnecessary check again
  • Loading branch information
kraih committed Jul 23, 2014
1 parent 7b1497c commit d2935dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Mojo/DOM.pm
Expand Up @@ -275,9 +275,8 @@ sub _delegate {
sub _input {
my ($form, $e) = @_;
my $type = $e->{type} // '';
my $check = $type eq 'radio' || $type eq 'checkbox';
return if $type eq 'button' || ($check && !defined $e->{checked});
_pair($form, $e->{name}, $e->_val);
_pair($form, $e->{name}, $e->_val)
if ($type ne 'radio' && $type ne 'checkbox') || defined $e->{checked};
}

sub _link {
Expand Down

0 comments on commit d2935dd

Please sign in to comment.