- Added an example to ComponentUI
- Add support for the external MooseX::Types::Common and
MooseX::Types::DateTime type libraries in the VPs
+ - Eliminate memory leak related to InstancePerContext
+ - Move the short-cut code from flush_view to flush to prevent events
+ from happening if serving a static file
0.001001 - 12 Aug 2008
- Initital public release
};
sub flush {
my ($self) = @_;
+ my $res = $self->ctx->res;
+ if ( $res->status =~ /^3/ || length($res->body) ) {
+ $res->content_type('text/plain') unless $res->content_type;
+ return;
+ }
$self->flush_events;
$self->flush_view;
};
sub flush_view {
my ($self) = @_;
my $res = $self->ctx->res;
- if ( $res->status =~ /^3/ || length($res->body) ) {
- $res->content_type('text/plain') unless $res->content_type;
- return;
- }
$res->body($self->view->render_window($self));
$res->content_type($self->content_type);
};