adapted getProperties to new property listing semantics in Node
This commit is contained in:
parent
1a30f698a5
commit
02482e6469
1 changed files with 1 additions and 11 deletions
|
@ -465,17 +465,7 @@ public class ESNode extends ObjectPrototype {
|
||||||
|
|
||||||
public Enumeration getProperties () {
|
public Enumeration getProperties () {
|
||||||
checkNode ();
|
checkNode ();
|
||||||
class PropEnum implements Enumeration {
|
return node.properties ();
|
||||||
Enumeration props = node.properties();
|
|
||||||
public boolean hasMoreElements () {
|
|
||||||
return props.hasMoreElements ();
|
|
||||||
}
|
|
||||||
public Object nextElement () {
|
|
||||||
IProperty p = (IProperty) props.nextElement ();
|
|
||||||
return p.getName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new PropEnum ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue