aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Controller.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reaction/UI/Controller.pm')
-rw-r--r--lib/Reaction/UI/Controller.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Reaction/UI/Controller.pm b/lib/Reaction/UI/Controller.pm
index fc2f597..eac550d 100644
--- a/lib/Reaction/UI/Controller.pm
+++ b/lib/Reaction/UI/Controller.pm
@@ -8,6 +8,7 @@ use base qw(
use Reaction::Class;
use Scalar::Util 'weaken';
+use namespace::clean -except => [ qw(meta) ];
sub push_viewport {
my $self = shift;
@@ -77,7 +78,7 @@ sub redirect_to {
sub make_context_closure {
my($self, $closure) = @_;
my $ctx = $self->context;
- weaken $ctx;
+ weaken($ctx);
return sub { $closure->($ctx, @_) };
}