aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Role/Actions.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-12-14 21:03:04 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-12-14 21:03:04 +0000
commitf1a74541734521d2b5013bcd577860d98ff727f5 (patch)
tree81446076153c98a8686df432673f0ee16bb80940 /lib/Reaction/UI/ViewPort/Role/Actions.pm
parent26fa3b8aef9774f0ebd25fcbda6297cb263417e9 (diff)
parenta722f3e3e226a7319f69722de01c06792b3cf2c3 (diff)
downloadreaction-f1a74541734521d2b5013bcd577860d98ff727f5.tar.gz
reaction-f1a74541734521d2b5013bcd577860d98ff727f5.zip
r31712@martha (orig r1247): groditi | 2009-10-02 17:02:01 -0400
whoops compile error r32396@martha (orig r1251): wreis | 2009-11-04 14:37:47 -0500 undo r1236 r32468@martha (orig r1254): edenc | 2009-11-16 16:48:46 -0500 r15979@debian (orig r1252): edenc | 2009-11-10 21:45:38 -0300 branching for clone-and-inherit workaround r15980@debian (orig r1253): edenc | 2009-11-10 21:50:34 -0300 working around Moose glitch via parameterized roles r32469@martha (orig r1255): edenc | 2009-11-16 17:06:25 -0500 added clone and inherit fix to Field::Mutable::HiddenArray r32618@martha (orig r1256): edenc | 2009-12-04 16:35:06 -0500 fixed hash deref bug in the base controller
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Role/Actions.pm')
-rw-r--r--lib/Reaction/UI/ViewPort/Role/Actions.pm10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Reaction/UI/ViewPort/Role/Actions.pm b/lib/Reaction/UI/ViewPort/Role/Actions.pm
index 9e57921..ceb9bfe 100644
--- a/lib/Reaction/UI/ViewPort/Role/Actions.pm
+++ b/lib/Reaction/UI/ViewPort/Role/Actions.pm
@@ -63,21 +63,11 @@ sub _build_actions {
my $label = exists $proto->{label} ? $proto->{label} : $proto_name;
my $layout = exists $proto->{layout} ? $proto->{layout} : 'uri';
- my $layout_args;
- if( exists $proto->{layout_args} ){
- if( ref($proto->{layout_args}) eq 'CODE' ){
- $layout_args = $proto->{layout_args}->($target, $ctx);
- } else {
- $layout_args = $proto->{layout_args};
- }
- }
-
my $action = Reaction::UI::ViewPort::URI->new(
location => join ('-', $loc, 'action', $i++),
uri => ( ref($uri) eq 'CODE' ? $uri->($target, $ctx) : $uri ),
display => ( ref($label) eq 'CODE' ? $label->($target, $ctx) : $label ),
layout => $layout,
- ( ref($layout_args) eq 'HASH' ? (layout_args => $layout_args) : () ),
);
push(@act, $action);
}