[Jifty-commit] r3575 - jifty/branches/trimclient/lib/Jifty/Web
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jun 26 20:47:55 EDT 2007
Author: clkao
Date: Tue Jun 26 20:47:54 2007
New Revision: 3575
Modified:
jifty/branches/trimclient/lib/Jifty/Web/PageRegion.pm
Log:
Don't break for TD that doesn't exist.
Modified: jifty/branches/trimclient/lib/Jifty/Web/PageRegion.pm
==============================================================================
--- jifty/branches/trimclient/lib/Jifty/Web/PageRegion.pm (original)
+++ jifty/branches/trimclient/lib/Jifty/Web/PageRegion.pm Tue Jun 26 20:47:54 2007
@@ -388,7 +388,7 @@
use Jifty::View::Declare::Compile;
sub _actual_td_code {
- my $code = shift;
+ my $code = shift or return;
return PadWalker::closed_over($code)->{'$coderef'}
? ${ PadWalker::closed_over($code)->{'$coderef'} } : $code;
@@ -397,7 +397,6 @@
sub client_cacheable {
my $self = shift;
return 'crudview' if $self->path eq '//todo/view';
-
my $code = _actual_td_code(Template::Declare->resolve_template($self->path));
return 'static' if $Jifty::View::Declare::BaseClass::Static{$code};
More information about the Jifty-commit
mailing list