cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript JSGlobal.java
Date Tue, 19 Mar 2002 09:40:08 GMT
ovidiu      02/03/19 01:40:08

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript
                        JSGlobal.java
  Log:
  Inherit from Rhino's Global class, to automatically inherit all the
  top level definitions.
  
  Revision  Changes    Path
  1.2       +7 -3      xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/JSGlobal.java
  
  Index: JSGlobal.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/JSGlobal.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JSGlobal.java	17 Mar 2002 21:47:57 -0000	1.1
  +++ JSGlobal.java	19 Mar 2002 09:40:08 -0000	1.2
  @@ -1,6 +1,7 @@
   package org.apache.cocoon.components.flow.javascript;
   
  -import org.mozilla.javascript.ScriptableObject;
  +import org.mozilla.javascript.Context;
  +import org.mozilla.javascript.tools.shell.Global;
   
   /**
    * Functions and variables in the global JavaScript scope.
  @@ -8,9 +9,12 @@
    * @author <a href="mailto:ovidiu@cup.hp.com">Ovidiu Predescu</a>
    * @since March 17, 2002
    */
  -public class JSGlobal extends ScriptableObject
  +public class JSGlobal extends Global
   {
  -  public JSGlobal() {}
  +  public JSGlobal(Context cx)
  +  {
  +    super(cx);
  +  }
   
     public String getClassName()
     {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message