move static function references to Script.java
[org.ibex.js.git] / src / org / ibex / js / Directory.java
index 645de0d..07ef38a 100644 (file)
@@ -102,7 +102,7 @@ public class Directory extends JS {
             Reader r = new InputStreamReader(new FileInputStream(f2));
             while(true) {
                 int numread = r.read(chars, numchars, chars.length - numchars);
-                if (numread == -1) return JS.S(new String(chars, 0, numchars));
+                if (numread == -1) return Script.S(new String(chars, 0, numchars));
                 numchars += numread;
             }
         } catch (IOException ioe) {
@@ -115,7 +115,7 @@ public class Directory extends JS {
         return new Enumeration(null) {
                 int i = 0;
                 public boolean _hasMoreElements() { return i < elements.length; }
-                public JS _nextElement() { return JS.S(FileNameEncoder.decode(elements[i++])); }
+                public JS _nextElement() { return Script.S(FileNameEncoder.decode(elements[i++])); }
             };
     }
 }