adapted getProperties to new property listing semantics in Node

This commit is contained in:
hns 2001-01-28 21:10:47 +00:00
parent 1a30f698a5
commit 02482e6469

View file

@ -465,17 +465,7 @@ public class ESNode extends ObjectPrototype {
public Enumeration getProperties () {
checkNode ();
class PropEnum implements Enumeration {
Enumeration props = node.properties();
public boolean hasMoreElements () {
return props.hasMoreElements ();
}
public Object nextElement () {
IProperty p = (IProperty) props.nextElement ();
return p.getName();
}
}
return new PropEnum ();
return node.properties ();
}