LogDebug("Registration iframes-supported plugins " <<
declaration->getName());
- if(declaration->getParentName().find('.') != std::string::npos)
- {
+ if (declaration->getParentName().find('.') != std::string::npos) {
LogWarning("The object will not be loaded to iframes");
return;
}
m_iframesObjects.push_back(declaration);
}
-void IframesSupport::registerIframe(const JSObjectPtr& iframe){
+void IframesSupport::registerIframe(const JSObjectPtr& iframe)
+{
LogDebug("LoadedIframes size: " << m_loadedIframes.size() );
m_loadedIframes.insert(iframe);
}
-void IframesSupport::unregisterIframe(const JSObjectPtr& iframe){
+void IframesSupport::unregisterIframe(const JSObjectPtr& iframe)
+{
LogDebug("LoadedIframes size: " << m_loadedIframes.size() );
auto it_loaded = std::find_if(m_loadedIframes.begin(),
- m_loadedIframes.end(),
- std::bind2nd(EqualToJSObjectPtr(), iframe));
+ m_loadedIframes.end(),
+ std::bind2nd(EqualToJSObjectPtr(), iframe));
//object not found, so thats the new iframe
- if(it_loaded == m_loadedIframes.end()){
+ if (it_loaded == m_loadedIframes.end()) {
LogDebug("Nothing to unregister");
return;
}