Mercurial > pub > Impl
diff Lib/IMPL/Web/View/TTFactory.pm @ 186:6c0fee769b0c
IMPL::Web::View::TTControl tests, fixes
author | cin |
---|---|
date | Fri, 30 Mar 2012 16:40:34 +0400 |
parents | 47dac58691ee |
children | 78a18a2b6266 |
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTFactory.pm Thu Mar 29 18:22:15 2012 +0400 +++ b/Lib/IMPL/Web/View/TTFactory.pm Fri Mar 30 16:40:34 2012 +0400 @@ -28,7 +28,7 @@ $this->template($template); $this->context($context || new Template::Context($options)); - $this->opts($options); + $this->opts($options || {}); $this->nodeProperties($nodeProps || {}); $this->instances(0); @@ -45,7 +45,7 @@ sub MergeParameters { my ($this,$name,$refProps) = @_; - my $opts = { $this->opts }; + my $opts = { %{ $this->opts } }; $opts->{STASH} = $opts->{STASH}->clone() if $opts->{STASH}; my $ctx = new Template::Context($opts);