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

Query if the JSAPI object has the 'methodName' method.

Parameters
methodNameName of the method.
Returns
true if method exists, false if not.

Implements FB::JSAPI.

Definition at line 146 of file JSAPIAuto.cpp.

147 {
148  boost::recursive_mutex::scoped_lock lock(m_zoneMutex);
149  if(!m_valid)
150  return false;
151 
152  return (m_methodFunctorMap.find(methodName) != m_methodFunctorMap.end()) && memberAccessible(m_zoneMap.find(methodName));
153 }