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

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];
Parameters
idxZero-based index of the property to remove
Since
1.5

Implements FB::JSAPI.

Definition at line 262 of file NPObjectAPI.cpp.

References RemoveProperty().

263 {
264  if (m_browser.expired())
265  return;
266 
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: