Skip to content

Commit

Permalink
just use values
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 25, 2016
1 parent a3d3fcc commit d960032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -170,7 +170,7 @@ sub _tag {
# Attributes
my $attrs = $tree->[2] = {@_};
if (ref $attrs->{data} eq 'HASH' && (my $data = delete $attrs->{data})) {
@$attrs{map { y/_/-/; lc "data-$_" } keys %$data} = @$data{keys %$data};
@$attrs{map { y/_/-/; lc "data-$_" } keys %$data} = values %$data;
}

return Mojo::ByteStream->new(Mojo::DOM::HTML::_render($tree));
Expand Down

0 comments on commit d960032

Please sign in to comment.