You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/19 23:23:10 UTC
svn commit: r1579425 - /thrift/cms-site/trunk/lib/view.pm
Author: joes
Date: Wed Mar 19 22:23:10 2014
New Revision: 1579425
URL: http://svn.apache.org/r1579425
Log:
memoize wrapper is cleaner
Modified:
thrift/cms-site/trunk/lib/view.pm
Modified: thrift/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1579425&r1=1579424&r2=1579425&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Wed Mar 19 22:23:10 2014
@@ -23,9 +23,7 @@ sub thrift_preprocessor {
"{{ " . $key++ . ".list.$a{index} }}";
}ge;
- my @rv = view->can($args{view})->(%args);
- $args{memo}->{$file} = \@rv if exists $args{memo};
- return @rv;
+ return view->can("memoize")->(%args);
}
1;