cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript woody.js
Date Tue, 22 Jul 2003 11:53:49 GMT
bruno       2003/07/22 04:53:49

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript
                        woody.js
  Log:
   * do not include request-attribute in parameters passed on to the flow function
   * initialize a few variables to null
  
  Revision  Changes    Path
  1.4       +6 -6      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/woody.js
  
  Index: woody.js
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/woody.js,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- woody.js	22 Jul 2003 08:37:05 -0000	1.3
  +++ woody.js	22 Jul 2003 11:53:49 -0000	1.4
  @@ -54,9 +54,9 @@
   Woody.suicide = new Continuation();
   
   function Form(formDef, attrName) {
  -    var formMgr;
  -    var resolver;
  -    var src;
  +    var formMgr = null;
  +    var resolver = null;
  +    var src = null;
       try {
           formMgr = cocoon.getComponent(Packages.org.apache.cocoon.woody.FormManager.ROLE);
           resolver = cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.ROLE);
  @@ -172,10 +172,10 @@
   }
   
   function woody(form_function, form_definition, attribute_name) {
  -    var args = new Array(arguments.length - 2 + 1);
  +    var args = new Array(arguments.length - 3 + 1);
       args[0] = new Form(form_definition, attribute_name);
  -    for (var i = 2; i < arguments.length; i++) {
  -        args[i-1] = arguments[i];
  +    for (var i = 3; i < arguments.length; i++) {
  +        args[i-2] = arguments[i];
       }
       this[form_function].apply(this, args);
   }
  
  
  

Mime
View raw message