mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-20 14:02:38 +02:00
fixed loading
This commit is contained in:
@@ -126,14 +126,14 @@ void DynamicCodeLoaderRenderer::renderHead(const Renderable* pRenderable, const
|
|||||||
// write loadAll
|
// write loadAll
|
||||||
|
|
||||||
std::vector<const DynamicCodeLoader*>::const_iterator it = deps.begin();
|
std::vector<const DynamicCodeLoader*>::const_iterator it = deps.begin();
|
||||||
str << "function " << pLoader->loadAllFunctionName() << "(ignoreSuccess){" << std::endl;
|
str << "function " << pLoader->loadAllFunctionName() << "(ignoreParentSuccess, ignoreChildSuccess){" << std::endl;
|
||||||
for (; it != deps.end(); ++it)
|
for (; it != deps.end(); ++it)
|
||||||
{
|
{
|
||||||
if (*it)
|
if (*it)
|
||||||
str << (*it)->loadAllFunctionName() << "(ignoreSuccess);" << std::endl;
|
str << (*it)->loadAllFunctionName() << "(ignoreChildSuccess, ignoreChildSuccess);" << std::endl;
|
||||||
}
|
}
|
||||||
if (deps.empty())
|
if (deps.empty())
|
||||||
str << pLoader->loaderFunctionName() << "(ignoreSuccess);";
|
str << pLoader->loaderFunctionName() << "(ignoreParentSuccess);";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
str << "if (!" << pLoader->loaderFunctionName() << "PeriodicCheck){" << std::endl;
|
str << "if (!" << pLoader->loaderFunctionName() << "PeriodicCheck){" << std::endl;
|
||||||
|
Reference in New Issue
Block a user