FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void IDispatchAPI::RemoveProperty ( int  idx)

Removes 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 RemoveProperty with idx = 12:

delete document.getElementById("plugin")[12];
idxZero-based index of the property to remove

Implements FB::JSAPI.

Definition at line 408 of file IDispatchAPI.cpp.

References FB::variant::convert_cast().

409 {
410  if (is_JSAPI) {
411  FB::JSAPIPtr tmp = inner.lock();
412  if (tmp)
413  RemoveProperty(idx);
414  }
416  FB::variant sIdx(idx);
417  RemoveProperty(sIdx.convert_cast<std::string>());
418 }
Accepts any datatype, used in all interactions with javascript. Provides tools for getting back out t...
Definition: variant.h:198
boost::shared_ptr< FB::JSAPI > JSAPIPtr
Defines an alias for a JSAPI shared_ptr (you should never use a JSAPI* directly)
Definition: APITypes.h:94
void RemoveProperty(const std::string &propertyName)
Removes a property.

Here is the call graph for this function: