FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool IDispatchAPI::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
idxZero-based index of the property to check for
Returns
true if property exists, false if not.

Implements FB::JSAPI.

Definition at line 245 of file IDispatchAPI.cpp.

References FB::variant::convert_cast().

246 {
247  FB::variant name(idx);
248  return getIDForName(name.convert_cast<std::wstring>()) != -1;
249 }
Accepts any datatype, used in all interactions with javascript. Provides tools for getting back out t...
Definition: variant.h:198

Here is the call graph for this function: