Skip to end of metadata
Go to start of metadata

bool JSAPISimple::HasProperty ( int  idx  )  const [virtual]

Query if the property at "idx" exists.

This can be used for providing array-style access on your object. For example, the following will result in a call to HasProperty with idx = 12:

       document.getElementById("plugin")[12];
Parameters:
idx Zero-based index of the property to check for
Returns:
true if property exists, false if not.

Implements FB::JSAPI.

Definition at line 155 of file JSAPISimple.cpp.

00156 {
00157     if (!m_valid)
00158         throw object_invalidated();
00159 
00160     // By default do not support indexing
00161     // To use array style access, override this method in your API object
00162     return false;
00163 }


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