Skip to end of metadata
Go to start of metadata

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:
idx Zero-based index of the property to remove
Since:
1.5

Implements FB::JSAPI.

Definition at line 185 of file JSAPISimple.cpp.

00186 {
00187     if (!m_valid)
00188         throw object_invalidated();
00189 
00190     // By default do not support indexing
00191     // To use array style access, override this method in your API object
00192     throw invalid_member("Array index: " + variant(idx).convert_cast<std::string>());
00193 }


Generated on 20 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None