FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool JSAPISimple::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 92 of file JSAPISimple.cpp.

93 {
94  if (!m_valid)
95  return false;
96 
97  MethodMap::const_iterator fnd = m_methodMap.find(methodName);
98  if (fnd != m_methodMap.end()) {
99  return true;
100  } else {
101  return false;
102  }
103 }