Closed guybedford closed 10 years ago
LinkDynamicModules runs a loop through the load record list (https://github.com/jorendorff/js-loaders/blob/master/Loader.js#L1640)
LinkDynamicModules
FinishLoad clears load records from the load record list of the linkSets (https://github.com/jorendorff/js-loaders/blob/master/Loader.js#L1440)
FinishLoad
So the iteration needs to take into account that the array will have changed.
Perhaps replace line 1640 with something like:
while(loads.length) { load = loads[0]; load.status = 'linked'; finishLoad(loader, load); }
BuildLinkageGroups effectively does this clone, stopping this from happening.
LinkDynamicModules
runs a loop through the load record list (https://github.com/jorendorff/js-loaders/blob/master/Loader.js#L1640)FinishLoad
clears load records from the load record list of the linkSets (https://github.com/jorendorff/js-loaders/blob/master/Loader.js#L1440)So the iteration needs to take into account that the array will have changed.
Perhaps replace line 1640 with something like: