mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 17:38:02 +00:00
Fix for loading bundles generating multiple did load callbacks.
Reviewed by me.
This commit is contained in:
1 parent
3fc99095e2
commit
33b4b94426
1 file changed
+7
-4
@@ -280,15 +280,18 @@ function fileExecutableSearchFinished(/*FileExecutable*/ aFileExecutable)
|
||||
|
||||
function fileExecutableDependencyLoadFinished()
|
||||
{
|
||||
var index = 0,
|
||||
count = fileDependencyExecutables.length;
|
||||
var executables = fileDependencyExecutables,
|
||||
index = 0,
|
||||
count = executables.length;
|
||||
|
||||
fileDependencyExecutables = [];
|
||||
|
||||
for (; index < count; ++index)
|
||||
fileDependencyExecutables[index]._fileDependencyStatus = ExecutableLoadedFileDependencies;
|
||||
executables[index]._fileDependencyStatus = ExecutableLoadedFileDependencies;
|
||||
|
||||
for (index = 0; index < count; ++index)
|
||||
{
|
||||
var executable = fileDependencyExecutables[index],
|
||||
var executable = executables[index],
|
||||
callbacks = executable._fileDependencyCallbacks,
|
||||
callbackIndex = 0,
|
||||
callbackCount = callbacks.length;
|
||||
|
||||
Reference in new issue
Block a user