Page tree
Skip to end of metadata
Go to start of metadata

void FB::JSAPIProxy::SetProperty ( int  idx,
const variant value 

Sets 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 SetProperty with idx = 12:

document.getElementById("plugin")[12] = "property value";
idxZero-based index of the property to set the value of.
valueThe new property value.

Implements FB::JSAPI.

Definition at line 217 of file JSAPIProxy.cpp.

218 {
219  FB::scoped_zonelock _l(getAPI(), getZone());
220  getAPI()->SetProperty(idx, value);
221 }
Provides a helper class for locking.
Definition: JSAPI.h:548
virtual SecurityZone getZone() const
Gets the currently active zone.
Definition: JSAPIImpl.h:238
  • No labels