Skip to content

Commit

Permalink
ACTIONSCRIPT: Check in hasMember also super class
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Feb 23, 2019
1 parent 023ce4e commit d5ba982
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aurora/actionscript/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ std::vector<Common::UString> Object::getSlots() const {
}

bool Object::hasMember(const Common::UString &id) {
std::map<Common::UString, Variable>::iterator iter = _members.find("constructor");
if (iter != _members.end())
if (iter->second.asObject()->hasMember(id))
return true;
return _members.find(id) != _members.end();
}

Expand Down

0 comments on commit d5ba982

Please sign in to comment.