comparison Lib/IMPL/DOM/Navigator/SimpleBuilder.pm @ 206:c8fe3f84feba

+IMPL::Web::Handlers::ViewSelector +IMPL::Web::Handlers::ErrorHandler *IMPL::Web::Handlers::RestController moved types mappings to ViewSelector
author sergey
date Thu, 03 May 2012 16:48:39 +0400
parents 4d0e1962161c
children 4ddb27ff4a0b
comparison
equal deleted inserted replaced
205:891c04080658 206:c8fe3f84feba
24 my $node; 24 my $node;
25 if (! $this->{$Document}) { 25 if (! $this->{$Document}) {
26 $node = $this->{$Document} = IMPL::DOM::Document->new(nodeName => $nodeName,%props); 26 $node = $this->{$Document} = IMPL::DOM::Document->new(nodeName => $nodeName,%props);
27 $this->_initNavigator($node); 27 $this->_initNavigator($node);
28 } else { 28 } else {
29 die new IMPL::InvalidOperationException('Can\t create a second top level element') unless $this->Current; 29 die new IMPL::InvalidOperationException('Can create a second top level element') unless $this->Current;
30 $node = $this->{$Document}->Create($nodeName,'IMPL::DOM::Node',\%props); 30 $node = $this->{$Document}->Create($nodeName,'IMPL::DOM::Node',\%props);
31 $this->Current->appendChild($node); 31 $this->Current->appendChild($node);
32 $this->internalNavigateNodeSet($node); 32 $this->internalNavigateNodeSet($node);
33 } 33 }
34 return $node; 34 return $node;