comparison Lib/IMPL/Serialization.pm @ 194:4d0e1962161c

Replaced tabs with spaces IMPL::Web::View - fixed document model, new features (control classes, document constructor parameters)
author cin
date Tue, 10 Apr 2012 20:08:29 +0400
parents d1676be8afcc
children a705e848dcc7
comparison
equal deleted inserted replaced
193:8e8401c0aea4 194:4d0e1962161c
221 Type => $rhProps->{'type'} || 'SCALAR', 221 Type => $rhProps->{'type'} || 'SCALAR',
222 Id => $rhProps->{'id'}, 222 Id => $rhProps->{'id'},
223 refId => $rhProps->{'refid'} 223 refId => $rhProps->{'refid'}
224 }; 224 };
225 225
226 if (defined $rhProps->{'id'}) { 226 if (defined $rhProps->{'id'}) {
227 die new IMPL::Exception("Trying to create a simple object instead of a reference, type is missing.",$name,$rhProps->{id}) unless $rhProps->{'type'} ; 227 die new IMPL::Exception("Trying to create a simple object instead of a reference, type is missing.",$name,$rhProps->{id}) unless $rhProps->{'type'} ;
228 $this->{$Context}->{$rhProps->{'id'}} = $this->{$SurrogateHelper} ? $this->{$SurrogateHelper}->($rhProps->{'type'}) : DefaultSurrogateHelper($rhProps->{'type'}); 228 $this->{$Context}->{$rhProps->{'id'}} = $this->{$SurrogateHelper} ? $this->{$SurrogateHelper}->($rhProps->{'type'}) : DefaultSurrogateHelper($rhProps->{'type'});
229 } 229 }
230 } 230 }
231 231
232 return 1; 232 return 1;
233 } 233 }
234 234