cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom FOM_JavaScriptInterpreter.java
Date Mon, 14 Jul 2003 09:54:13 GMT
reinhard    2003/07/14 02:54:13

  Modified:    src/java/org/apache/cocoon/components/flow/javascript/fom
                        FOM_JavaScriptInterpreter.java
  Log:
  - changed the comment because implementation has changed
  
  Revision  Changes    Path
  1.2       +5 -4      cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
  
  Index: FOM_JavaScriptInterpreter.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FOM_JavaScriptInterpreter.java	8 Jul 2003 05:48:52 -0000	1.1
  +++ FOM_JavaScriptInterpreter.java	14 Jul 2003 09:54:13 -0000	1.2
  @@ -337,8 +337,9 @@
        *
        * <p>If you want to maintain the state of global variables across
        * multiple invocations of <code>&lt;map:call
  -     * function="..."&gt;</code>, you need to invoke from the JavaScript
  -     * script <code>cocoon.createSession()</code>. This will place the
  +     * function="..."&gt;</code>, you need to instanciate the session
  +     * object which is a property of the cocoon object 
  +     * <code>var session = cocoon.session</code>. This will place the
        * newly create Scriptable object in the user's session, where it
        * will be retrieved from at the next invocation of {@link #callFunction}.</p>
        *
  @@ -423,12 +424,12 @@
   
       /**
        * Compile filename as JavaScript code
  +     * 
        * @param cx Rhino context
        * @param environment source resolver
        * @param fileName resource uri
        * @return compiled script
        */
  -
       public Script compileScript(Context cx,
                                   Environment environment,
                                   String fileName) throws Exception {
  
  
  

Mime
View raw message