Page tree
Skip to end of metadata
Go to start of metadata

bool FB::JSAPI::HasProperty ( int  idx) const
pure 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
idxZero-based index of the property to check for
Returns
true if property exists, false if not.

Implemented in FB::JSAPIAuto, FB::JSAPIProxy, FB::JSAPISimple, FB::ActiveX::IDispatchAPI, and FB::Npapi::NPObjectAPI.

  • No labels