diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-08-01 20:07:10 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-08-01 20:07:10 +0000 |
commit | 59e408118671a114fe45ded6df15b1d6cbf21042 (patch) | |
tree | c7e9bcdada99209244bac8dbcf97b2587e66546b /lib/Reaction/UI/Controller.pm | |
parent | 0caf173ef392e2b60ac2587a2d1c1f9cdfe919ed (diff) | |
download | reaction-59e408118671a114fe45ded6df15b1d6cbf21042.tar.gz reaction-59e408118671a114fe45ded6df15b1d6cbf21042.zip |
make "class" in the config for push_vieport work correctly
Diffstat (limited to 'lib/Reaction/UI/Controller.pm')
-rw-r--r-- | lib/Reaction/UI/Controller.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Reaction/UI/Controller.pm b/lib/Reaction/UI/Controller.pm index 46456bd..8ed781f 100644 --- a/lib/Reaction/UI/Controller.pm +++ b/lib/Reaction/UI/Controller.pm @@ -26,9 +26,7 @@ sub push_viewport { $vp_attr = $vp_attr->[0]; } if (ref($vp_attr) eq 'HASH') { - if (my $conf_class = delete $vp_attr->{class}) { - $class = $conf_class; - } + $class = $vp_attr->{class} if defined $vp_attr->{class}; %args = %{ $self->merge_config_hashes($vp_attr, {@proto_args}) }; } else { $class = $vp_attr; |