aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Controller
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-26 20:35:40 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-26 20:35:40 +0000
commit9446e1cd17441b0e3ce7102cfca38de2b7869f24 (patch)
treef656719aad0b14f295edf129102d3002be4c0f88 /lib/Reaction/UI/Controller
parent13312031c567552b3f18b650a49b83bb2f125576 (diff)
downloadreaction-9446e1cd17441b0e3ce7102cfca38de2b7869f24.tar.gz
reaction-9446e1cd17441b0e3ce7102cfca38de2b7869f24.zip
prefix the viewport names with r-vp because html element ids may not start with a number
Diffstat (limited to 'lib/Reaction/UI/Controller')
-rw-r--r--lib/Reaction/UI/Controller/Root.pm18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/Reaction/UI/Controller/Root.pm b/lib/Reaction/UI/Controller/Root.pm
index 7ab40b4..eb0e3b5 100644
--- a/lib/Reaction/UI/Controller/Root.pm
+++ b/lib/Reaction/UI/Controller/Root.pm
@@ -19,15 +19,17 @@ sub begin :Private {
my ($self, $ctx) = @_;
$ctx->stash(
window => Reaction::UI::Window->new(
- ctx => $ctx,
- view_name => $self->view_name,
- content_type => $self->content_type,
- ($self->has_window_title
- ? (title => $self->window_title)
- : ()),
- )
+ ctx => $ctx,
+ view_name => $self->view_name,
+ content_type => $self->content_type,
+ ($self->has_window_title
+ ? (title => $self->window_title)
+ : ()),
+ )
);
- $ctx->stash(focus_stack => $ctx->stash->{window}->focus_stack);
+ my $focus_stack = $ctx->stash->{window}->focus_stack;
+ $focus_stack->loc_prefix('r-vp');
+ $ctx->stash(focus_stack => $focus_stack);
}
sub end :Private {