diff _test/Resources/TTView/My/Org/Panel.tt @ 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 4d0e1962161c
children 0f59b2de72af
line wrap: on
line diff
--- a/_test/Resources/TTView/My/Org/Panel.tt	Mon Oct 15 17:39:12 2012 +0400
+++ b/_test/Resources/TTView/My/Org/Panel.tt	Tue Oct 16 01:33:06 2012 +0400
@@ -8,13 +8,14 @@
     BLOCK CTOR;
         this.dojoClass = this.dojoClass || dojoDefaultClass;
         this.visualClass = this.visualClass || 'classic';
+        this.childNodes = [];
         FOREACH text IN this.data;
-            append(TPreview.new('preview', nodeValue = text ));
+            this.childNodes.push( TPreview.new('preview', nodeValue = text ) );
         END;
     END;
 %]
 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
-    [% FOREACH node IN select('preview') %]
+    [% FOREACH node IN this.childNodes %]
         [% node.Render() %]
         <hr />
     [% END %]