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

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

Committer: anazarov
LJSUP-12621: Create script to generate widget skeleton
U   trunk/bin/js/widget.tmpl
Modified: trunk/bin/js/widget.tmpl
===================================================================
--- trunk/bin/js/widget.tmpl	2012-06-20 12:24:18 UTC (rev 22291)
+++ trunk/bin/js/widget.tmpl	2012-06-20 12:58:01 UTC (rev 22292)
@@ -22,22 +22,22 @@
 		templates: {
 		},
 
-		_create: {
+		_create: function () {
 			$.lj.basicWidget.prototype._create.apply(this);
 
 			this._bindControls();
 		},
 
-		_bindControls: {
+		_bindControls: function () {
 		}<TMPL_IF has_private>,<TMPL_ELSE><TMPL_IF has_public>,</TMPL_IF></TMPL_IF><TMPL_LOOP private>
 
-		_<TMPL_VAR method>: {
+		_<TMPL_VAR method>: function () {
 		}<TMPL_UNLESS __last__>,</TMPL_UNLESS></TMPL_LOOP><TMPL_LOOP public><TMPL_IF __first__>,
 		</TMPL_IF>
 		/**
 		 * TODO: Write description here
 		 */
-		<TMPL_VAR method>: {
+		<TMPL_VAR method>: function () {
 		}<TMPL_UNLESS __last__>,</TMPL_UNLESS>
 		</TMPL_LOOP>
 	});

Tags: anazarov, livejournal, nfokz, 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