FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool FB::JSAPIAuto::HasMethodObject ( const std::string &  methodObjName) const
virtual

Query if 'methodObjName' is a valid methodObj.

Parameters
methodObjNameName of the method to fetch an object for.

If this feature is supported

Returns
true if methodObj exists, false if not.
Since
1.4

Reimplemented from FB::JSAPI.

Definition at line 155 of file JSAPIAuto.cpp.

156 {
157  boost::recursive_mutex::scoped_lock lock(m_zoneMutex);
158 
159  return m_allowMethodObjects && HasMethod(methodObjName);
160 }
virtual bool HasMethod(const std::string &methodName) const
Query if the JSAPI object has the 'methodName' method.
Definition: JSAPIAuto.cpp:146