FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool JSAPISimple::HasProperty ( const std::string &  propertyName) const
virtual

Query if 'propertyName' is a valid property.

Parameters
propertyNameName of the property.
Returns
true if property exists, false if not.

Implements FB::JSAPI.

Definition at line 105 of file JSAPISimple.cpp.

106 {
107  if (!m_valid)
108  return false;
109 
110  PropertyMap::const_iterator fnd = m_propertyMap.find(propertyName);
111  if (fnd != m_propertyMap.end()) {
112  return true;
113  } else {
114  return false;
115  }
116  return false;
117 }