Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22304: LJSUP-12621: Create script to generate w...

Committer: anazarov
LJSUP-12621: Create script to generate widget skeleton
U   trunk/bin/js/factory.pl
U   trunk/bin/js/widget.tmpl
Modified: trunk/bin/js/factory.pl
===================================================================
--- trunk/bin/js/factory.pl	2012-06-22 06:54:36 UTC (rev 22303)
+++ trunk/bin/js/factory.pl	2012-06-22 07:05:16 UTC (rev 22304)
@@ -71,8 +71,6 @@
     name        => $name,
     author      => $author,
     extends     => $extends,
-    has_public  => $public?  1 : 0,
-    has_private => $private? 1 : 0,
     public      => $public  || [],
     private     => $private || [],
 );

Modified: trunk/bin/js/widget.tmpl
===================================================================
--- trunk/bin/js/widget.tmpl	2012-06-22 06:54:36 UTC (rev 22303)
+++ trunk/bin/js/widget.tmpl	2012-06-22 07:05:16 UTC (rev 22304)
@@ -28,7 +28,7 @@
 		},
 
 		_bindControls: function () {
-		}<TMPL_IF has_private>,<TMPL_ELSE><TMPL_IF has_public>,</TMPL_IF></TMPL_IF><TMPL_LOOP private>
+		}<TMPL_LOOP private><TMPL_IF __first__>,</TMPL_IF>
 
 		_<TMPL_VAR method>: function () {
 		}<TMPL_UNLESS __last__>,</TMPL_UNLESS></TMPL_LOOP><TMPL_LOOP public><TMPL_IF __first__>,

Tags: anazarov, livejournal, nfokz, pl, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments