Exclude "hopobject" from isInstance() to force consistent naming for macro
handlers (use "this" instead of "hopobject").
This commit is contained in:
parent
045210440e
commit
2c8585c611
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ public final class Prototype {
|
|||
public final boolean isInstanceOf (String pname) {
|
||||
if (name.equals (pname))
|
||||
return true;
|
||||
if (parent != null)
|
||||
if (parent != null && !"hopobject".equalsIgnoreCase (parent.getName()))
|
||||
return parent.isInstanceOf (pname);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue