FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool FB::JSAPIProxy::HasProperty ( const std::string &  propertyName) const

Query if 'propertyName' is a valid property.

propertyNameName of the property.
true if property exists, false if not.

Implements FB::JSAPI.

Definition at line 169 of file JSAPIProxy.cpp.

170 {
171  if (propertyName == "expired")
172  return true;
173  FB::scoped_zonelock _l(getAPI(), getZone());
174  return getAPI()->HasProperty(propertyName);
175 }
Provides a helper class for locking.
Definition: JSAPI.h:548
virtual SecurityZone getZone() const
Gets the currently active zone.
Definition: JSAPIImpl.h:238