FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool FB::JSAPIProxy::HasProperty ( int  idx) const

Query if the property at "idx" exists.

This can be used for providing array-style access on your object. For example, the following will result in a call to HasProperty with idx = 12:

idxZero-based index of the property to check for
true if property exists, false if not.

Implements FB::JSAPI.

Definition at line 177 of file JSAPIProxy.cpp.

178 {
179  FB::scoped_zonelock _l(getAPI(), getZone());
180  return getAPI()->HasProperty(idx);
181 }
Provides a helper class for locking.
Definition: JSAPI.h:548
virtual SecurityZone getZone() const
Gets the currently active zone.
Definition: JSAPIImpl.h:238