Removes a property.
Implements FB::JSAPI. Definition at line 252 of file JSAPIAuto.cpp. 00253 { 00254 boost::recursive_mutex::scoped_lock lock(m_zoneMutex); 00255 if(!m_valid) 00256 throw object_invalidated(); 00257 00258 // If there is nothing with this name available in the current security context, 00259 // we throw an exception -- whether or not a real property exists 00260 if (!memberAccessible(m_zoneMap.find(propertyName))) 00261 throw invalid_member(propertyName); 00262 00263 if(m_allowRemoveProperties && m_propertyFunctorsMap.find(propertyName) != m_propertyFunctorsMap.end()) { 00264 unregisterProperty(propertyName); 00265 } else if (m_allowDynamicAttributes && m_attributes.find(propertyName) != m_attributes.end() 00266 && !m_attributes[propertyName].readonly) { 00267 unregisterAttribute(propertyName); 00268 } 00269 00270 // If nothing is found matching, we'll just let it slide -- no sense causing exceptions 00271 // when the end goal is reached already. 00272 } |
Generated on 20 Jun 2013 for FireBreath by
1.6.1
Labels
