diff Lib/IMPL/Web/View/TTControl.pm @ 212:292226770180

bugfixes
author sergey
date Fri, 29 Jun 2012 19:24:15 +0400
parents 4d0e1962161c
children d6e2ea24af08
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTControl.pm	Tue Jun 05 07:45:21 2012 +0400
+++ b/Lib/IMPL/Web/View/TTControl.pm	Fri Jun 29 19:24:15 2012 +0400
@@ -57,7 +57,7 @@
     $args ||= {};
     
     if ( my $ctor = $this->template->blocks->{CTOR} ) {
-        $this->context->include($ctor, { %$args, this => $this } );
+        $this->context->include($ctor, { %$args, this => $this, template => $this->template } );
     }
 }
 
@@ -85,7 +85,7 @@
     return if $method eq 'DESTROY';
     
     my $this = shift;
-    
+
     $this->nodeProperty($method,@_);
 }