FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void NPObjectAPI::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 262 of file NPObjectAPI.cpp.

References RemoveProperty().

263 {
264  if (m_browser.expired())
265  return;
267  NpapiBrowserHostPtr browser(getHost());
268  std::string strIdx(boost::lexical_cast<std::string>(idx));
269  if (is_JSAPI) {
270  FB::JSAPIPtr tmp = inner.lock();
271  if (tmp)
272  return tmp->RemoveProperty(idx);
273  }
274  return RemoveProperty(strIdx);
275 }
void RemoveProperty(const std::string &propertyName)
Removes a property.
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

Here is the call graph for this function: