Mercurial > pub > Impl
comparison Lib/IMPL/Web/Application/CustomResource.pm @ 240:abc7c26bf615
+Added ObjectFactory for templates with static members support
*fixed web-resource model errors
author | sergey |
---|---|
date | Wed, 17 Oct 2012 17:41:29 +0400 |
parents | 6d8092d8ce1b |
children | 814d755e5d12 |
comparison
equal
deleted
inserted
replaced
239:23daf2fae33a | 240:abc7c26bf615 |
---|---|
22 $self->_contractInstance ? $self->_contractInstance : $self->InitContract(); | 22 $self->_contractInstance ? $self->_contractInstance : $self->InitContract(); |
23 } | 23 } |
24 | 24 |
25 sub InitContract { | 25 sub InitContract { |
26 my ($self) = @_; | 26 my ($self) = @_; |
27 | |
28 $self->_contractInstance( | 27 $self->_contractInstance( |
29 $self->contractFactory->new( | 28 $self->contractFactory->new( |
30 resourceFactory => $self, | 29 resourceFactory => $self, |
31 resources => [ $self->GetChildResources() ] | 30 resources => [ $self->GetChildResources() ] |
32 ) | 31 ) |