Skip to content

Commit

Permalink
allow for $widget->set( pack => {...} ) syntax too
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Sep 1, 2024
1 parent fa81249 commit c5af802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Prima/Classes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ sub parse_markup { Prima::Drawable::Markup::M( $_[2] ) }
sub __tk_dash_map
{
my %ret;
my %hash = @_;
my %hash = (1 == @_ && ref($_[0]) eq 'HASH') ? %{$_[0]} : @_;
while ( my ( $k, $v ) = each %hash ) {
$k =~ s/^-//;
$ret{$k} = $v;
Expand Down

0 comments on commit c5af802

Please sign in to comment.