Exclude "hopobject" from isInstance() to force consistent naming for macro

handlers (use "this" instead of "hopobject").
This commit is contained in:
hns 2003-03-04 18:17:47 +00:00
parent 045210440e
commit 2c8585c611

View file

@ -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;
}