cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: rev 57570 - cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms
Date Sat, 13 Nov 2004 09:41:10 GMT
Author: sylvain
Date: Sat Nov 13 01:41:09 2004
New Revision: 57570

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/dynamicrepeater.xml
Log:
Local variables must be declared with "var"


Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/dynamicrepeater.xml
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/dynamicrepeater.xml	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/forms/dynamicrepeater.xml	Sat Nov
13 01:41:09 2004
@@ -66,7 +66,7 @@
           var form = event.source.form;
           var count = new java.lang.Integer(form.getAttribute("counter").intValue() + 1);
           form.setAttribute("counter", count);
-          repeater = form.getChild("contacts");
+          var repeater = form.getChild("contacts");
           repeater.getRow(repeater.getSize() - 1).getChild("ID").setValue(count);
         </fd:javascript>
       </fd:on-action>

Mime
View raw message