Allow properties to start with underscores, apart from internal HopObject props.
This commit is contained in:
parent
d8e86948db
commit
e64aa2780e
1 changed files with 5 additions and 2 deletions
|
@ -765,9 +765,12 @@ public class HopObject extends ScriptableObject implements Wrapper {
|
|||
|
||||
checkNode();
|
||||
|
||||
// Everything starting with an underscore is interpreted as internal property
|
||||
// Property names starting with an underscore is interpreted
|
||||
// as internal properties
|
||||
if (name.charAt(0) == '_') {
|
||||
return getInternalProperty(name);
|
||||
Object value = getInternalProperty(name);
|
||||
if (value != NOT_FOUND)
|
||||
return value;
|
||||
}
|
||||
|
||||
if ("subnodeRelation".equals(name)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue