FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::variant FB::JSAPIProxy::GetProperty ( int  idx)

Gets the value of an indexed property.

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

var i = document.getElementById("plugin")[12];
idxZero-based index of the property to get the value of.
The property value.

Implements FB::JSAPI.

Definition at line 199 of file JSAPIProxy.cpp.

200 {
201  FB::scoped_zonelock _l(getAPI(), getZone());
202  return getAPI()->GetProperty(idx);
203 }
Provides a helper class for locking.
Definition: JSAPI.h:548
virtual SecurityZone getZone() const
Gets the currently active zone.
Definition: JSAPIImpl.h:238