parse js and hac files even if they're empty

This commit is contained in:
hns 2001-03-08 18:58:31 +00:00
parent 127c98340f
commit eb05a99a29

View file

@ -298,7 +298,7 @@ public class TypeManager implements Runnable {
app.logEvent ("Error updating prototype: "+x);
}
} else if (list[i].endsWith (app.scriptExtension) && tmpfile.length () > 0) {
} else if (list[i].endsWith (app.scriptExtension)) {
try {
FunctionFile ff = new FunctionFile (tmpfile, tmpname, proto);
proto.updatables.put (list[i], ff);
@ -307,7 +307,7 @@ public class TypeManager implements Runnable {
app.logEvent ("Error updating prototype: "+x);
}
} else if (list[i].endsWith (app.actionExtension) && tmpfile.length () > 0) {
} else if (list[i].endsWith (app.actionExtension)) {
try {
Action af = new Action (tmpfile, tmpname, proto);
proto.updatables.put (list[i], af);