diff Lib/IMPL/Web/View/TTRegistry.pm @ 345:72799d1211c5

sync
author cin
date Fri, 27 Sep 2013 16:28:27 +0400
parents 5e4e7c8fbca1
children
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTRegistry.pm	Mon Sep 23 00:09:26 2013 +0400
+++ b/Lib/IMPL/Web/View/TTRegistry.pm	Fri Sep 27 16:28:27 2013 +0400
@@ -9,20 +9,17 @@
         TTControl => '-IMPL::Web::View::TTControl'
     },
     base => [
-        'IMPL::Object' => undef,
-        'IMPL::Object::Disposable' => undef
+        'IMPL::Object' => undef
     ],
     props => [
-        loader => PROP_RW,
         context => PROP_RW,
         _cache => PROP_RW,
     ]
 };
 
 sub CTOR {
-	my ($this,$loader,$context) = @_;
-	
-	$this->loader($loader);
+	my ($this,$context) = @_;
+
 	$this->context($context);
 	$this->_cache({});
 }
@@ -39,7 +36,7 @@
         $factory = TTFactory->new(
             $template->class || TTControl,
             $template,
-            $this->context,
+            $this->context->clone,
             $name,
             $this
         );
@@ -49,16 +46,6 @@
     }
 }
 
-sub Dispose {
-	my ($this) = @_;
-	
-	$this->_cache(undef);
-	$this->context(undef);
-	$this->loader(undef);
-	
-	$this->next::method();
-}
-
 1;
 
 __END__