X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FWindow.pm;h=2865e0eeb1dfb31c67570fb63477f5cfbc65f236;hb=7ea45b2aff36dd61953b1517a1cfb079dcea230c;hp=8257c28d46c91213ac9a6cba8a85c62b327be3fa;hpb=f1cd5548dac21719deb3412fbc5d8dadb9338cc3;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/Window.pm b/lib/Reaction/UI/Window.pm index 8257c28..2865e0e 100644 --- a/lib/Reaction/UI/Window.pm +++ b/lib/Reaction/UI/Window.pm @@ -6,9 +6,9 @@ use Reaction::UI::FocusStack; use namespace::clean -except => [ qw(meta) ]; -has ctx => (isa => 'Catalyst', is => 'ro', required => 1); +has ctx => (isa => 'Catalyst', is => 'ro', required => 1, weak_ref => 1); has view_name => (isa => 'Str', is => 'ro', lazy_fail => 1); -has content_type => (isa => 'Str', is => 'ro', lazy_fail => 1); +has content_type => (isa => 'Str', is => 'rw', lazy_fail => 1); has title => (isa => 'Str', is => 'rw', default => sub { 'Untitled window' }); has view => ( # XXX compile failure because the Catalyst::View constraint would be