Skip to content

Commit

Permalink
Discard elements from repeated lists in [zoom init].
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Sep 6, 2010
1 parent fa949c7 commit d9a3b76
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/WellWell/Zoom.pm
Expand Up @@ -213,11 +213,23 @@ sub parse_handler {
}

if ($sob->{type} eq 'list') {
if (exists $sref->{lists}->{$name}) {
# discard repeated lists
$elt->cut();
return;
}

$sob->{elts} = [$elt];

$sref->{lists}->{$name} = [$sob];
return $sref;
}
elsif ($sob->{type} eq 'param') {

if (exists $sref->{lists}->{$sob->{list}}) {
return $sref;
}

if ($sob->{type} eq 'param') {
push (@{$sob->{elts}}, $elt);

if ($gi eq 'input') {
Expand Down

0 comments on commit d9a3b76

Please sign in to comment.