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/21 00:51:16 UTC

svn commit: r1579835 - /thrift/cms-site/trunk/lib/view.pm

Author: joes
Date: Thu Mar 20 23:51:16 2014
New Revision: 1579835

URL: http://svn.apache.org/r1579835
Log:
stack views

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=1579835&r1=1579834&r2=1579835&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Thu Mar 20 23:51:16 2014
@@ -28,7 +28,7 @@ sub thrift_preprocessor {
                            "{{ " . $key++ . ".fetch$mdfilter }}";
                        }ge;
 
-    my $view = ref $args{view} ? shift @{$args{view}} : $args{view};
+    my $view = ref $args{view} ? shift @{$args{view}} : delete $args{view};
     return view->can($view)->(%args);
 }