comparison Lib/IMPL/DOM/Navigator/Builder.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 2904da230022
comparison
equal deleted inserted replaced
205:891c04080658 206:c8fe3f84feba
42 my $node; 42 my $node;
43 if (! $this->{$Document}) { 43 if (! $this->{$Document}) {
44 $node = $this->{$Document} = $this->{$_docClass}->new(nodeName => $nodeName,%props); 44 $node = $this->{$Document} = $this->{$_docClass}->new(nodeName => $nodeName,%props);
45 $this->_initNavigator($node); 45 $this->_initNavigator($node);
46 } else { 46 } else {
47 die new IMPL::InvalidOperationException('Can\t create a second top level element') unless $this->Current; 47 die new IMPL::InvalidOperationException('Can create a second top level element') unless $this->Current;
48 $node = $this->{$Document}->Create($nodeName,$class,\%props); 48 $node = $this->{$Document}->Create($nodeName,$class,\%props);
49 $this->Current->appendChild($node); 49 $this->Current->appendChild($node);
50 $this->internalNavigateNodeSet($node); 50 $this->internalNavigateNodeSet($node);
51 } 51 }
52 52