Mercurial > pub > Impl
diff Lib/IMPL/Web/View/TTDocument.pm @ 238:b8c724f6de36
DOM model refactoring
TT view refactoring, controls are no longer derived from DOM nodes
bugfixes
author | sergey |
---|---|
date | Tue, 16 Oct 2012 01:33:06 +0400 |
parents | 2904da230022 |
children | f48a1a9f4fa2 |
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTDocument.pm Mon Oct 15 17:39:12 2012 +0400 +++ b/Lib/IMPL/Web/View/TTDocument.pm Tue Oct 16 01:33:06 2012 +0400 @@ -14,11 +14,8 @@ 'IMPL::Web::View::TTControl' => sub { my ($template,$contextOpts) = @_; 'document', - $_[0], # template - new Template::Context($_[1]) # context - }, - 'IMPL::DOM::Document' => sub { - nodeName => 'document' + $template, # template + Template::Context->new($contextOpts) # context } ], props => [