diff _test/Resources/TTView/My/Org/Panel.tt @ 263:0f59b2de72af

*fixed IMPL::DOM::Schema circular module references *modified IMPL::Object::Singleton, added auto-activation *code cleanups, docs
author sergey
date Wed, 09 Jan 2013 05:17:44 +0400
parents b8c724f6de36
children 2d253e6e4a88
line wrap: on
line diff
--- a/_test/Resources/TTView/My/Org/Panel.tt	Sat Dec 29 03:22:15 2012 +0400
+++ b/_test/Resources/TTView/My/Org/Panel.tt	Wed Jan 09 05:17:44 2013 +0400
@@ -1,11 +1,12 @@
 [%
     META version = 1;
     BLOCK INIT;
+    # this is a document scope
         dojoDefaultClass = 'dijit.form.Input'; 
         dojo.require.push( dojoDefaultClass );
-        TPreview = require('My/Org/TextPreview');
     END;
     BLOCK CTOR;
+        TPreview = require('My/Org/TextPreview');
         this.dojoClass = this.dojoClass || dojoDefaultClass;
         this.visualClass = this.visualClass || 'classic';
         this.childNodes = [];