* Implement HopObject.getAllIds() in order to display HopObject properties in debugger.
This commit is contained in:
parent
3fbb4419c6
commit
b49ad9d2f1
1 changed files with 13 additions and 3 deletions
|
@ -971,9 +971,19 @@ public class HopObject extends ScriptableObject implements Wrapper, PropertyReco
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Return all property names of this object. This method is used by debugger.
|
||||||
*
|
* @return array containing the names of all properties defined in this object
|
||||||
* @return ...
|
*/
|
||||||
|
public Object[] getAllIds() {
|
||||||
|
if (node == null) {
|
||||||
|
return super.getAllIds();
|
||||||
|
}
|
||||||
|
return getIds();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return all "ordinary" property ids of this object. This "hides" the prototype methods.
|
||||||
|
* @return array containing the names of this object's data properties
|
||||||
*/
|
*/
|
||||||
public Object[] getIds() {
|
public Object[] getIds() {
|
||||||
if (node == null) {
|
if (node == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue