diff Lib/IMPL/Web/Handler/View.pm @ 371:d5c8b955bf8d

refactoring
author cin
date Fri, 13 Dec 2013 16:49:47 +0400
parents 833e663796c4
children e12c14177848
line wrap: on
line diff
--- a/Lib/IMPL/Web/Handler/View.pm	Tue Dec 10 03:02:01 2013 +0400
+++ b/Lib/IMPL/Web/Handler/View.pm	Fri Dec 13 16:49:47 2013 +0400
@@ -41,10 +41,9 @@
 
     my $result = $next ? $next->($action) : undef;
     
-    my ($model,$template);
+    my $model;
     if( ref $result and eval { $result->isa(ViewResult) } ) {
         $model = $result->model;
-        $template = $result->template;
     } else {
         $model = $result;
         $result = ViewResult->new(model => $model);
@@ -67,7 +66,7 @@
         charset => $this->contentCharset,
 	        body => $this->view->display(
 	      	$model,
-	      	$template || $this->SelectView( $action, ref $model ),
+	      	$this->SelectView( $action, ref $model ),
 	        $vars
 	    )
     );