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

186 {
187  if (!m_valid)
188  throw object_invalidated();
189 
190  // By default do not support indexing
191  // To use array style access, override this method in your API object
192  throw invalid_member("Array index: " + variant(idx).convert_cast<std::string>());
193 }
Accepts any datatype, used in all interactions with javascript. Provides tools for getting back out t...
Definition: variant.h:198
Thrown by a JSAPI object when a call is made on it after the object has been invalidated.
Definition: JSExceptions.h:69
Thrown when an Invoke, SetProperty, or GetProperty call is made for a member that is invalid (does no...
Definition: JSExceptions.h:83