Changeset 8896

Show
Ignore:
Timestamp:
04/29/08 22:01:33 (7 months ago)
Author:
hannes
Message:

* Fix module scope caching (at least a bit).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • helma-ng/trunk/src/org/helma/javascript/ReloadableScript.java

    r8863 r8896  
    1717package org.helma.javascript; 
    1818 
     19import org.helma.repository.Resource; 
    1920import org.mozilla.javascript.*; 
    20 import org.helma.repository.Resource; 
    2121 
    22 import java.io.*; 
     22import java.io.FileNotFoundException; 
     23import java.io.IOException; 
    2324 
    2425/** 
     
    4041 
    4142    final static short UNKNOWN = 0, 
    42                      ORDINARY = 0
     43                     ORDINARY = 1
    4344                     JSADAPTER = 2; 
    4445 
     
    142143        if (scope.get("__shared__", scope) == Boolean.TRUE) { 
    143144            moduleScope = scope; 
     145        } else { 
     146            moduleScope = null; 
    144147        } 
    145148        return scope;