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 () {
|
||||
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 ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue