@@ -568,7 +568,7 @@ function logloads(loads) {
568
568
// 1. groups is an already-interleaved array of group kinds
569
569
// 2. load.groupIndex is set when this function runs
570
570
// 3. load.groupIndex is the interleaved index ie 0 declarative, 1 dynamic, 2 declarative, ... (or starting with dynamic)
571
- function buildLinkageGroups ( load , loads , groups , loader ) {
571
+ function buildLinkageGroups ( load , loads , groups ) {
572
572
groups [ load . groupIndex ] = groups [ load . groupIndex ] || [ ] ;
573
573
574
574
// if the load already has a group index and its in its group, its already been done
@@ -596,7 +596,7 @@ function logloads(loads) {
596
596
if ( loadDep . groupIndex === undefined || loadDep . groupIndex < loadDepGroupIndex ) {
597
597
598
598
// if already in a group, remove from the old group
599
- if ( loadDep . groupIndex ) {
599
+ if ( loadDep . groupIndex !== undefined ) {
600
600
groups [ loadDep . groupIndex ] . splice ( indexOf . call ( groups [ loadDep . groupIndex ] , loadDep ) , 1 ) ;
601
601
602
602
// if the old group is empty, then we have a mixed depndency cycle
@@ -607,7 +607,7 @@ function logloads(loads) {
607
607
loadDep . groupIndex = loadDepGroupIndex ;
608
608
}
609
609
610
- buildLinkageGroups ( loadDep , loads , groups , loader ) ;
610
+ buildLinkageGroups ( loadDep , loads , groups ) ;
611
611
}
612
612
}
613
613
}
@@ -646,7 +646,7 @@ function logloads(loads) {
646
646
var groups = [ ] ;
647
647
var startingLoad = linkSet . loads [ 0 ] ;
648
648
startingLoad . groupIndex = 0 ;
649
- buildLinkageGroups ( startingLoad , linkSet . loads , groups , loader ) ;
649
+ buildLinkageGroups ( startingLoad , linkSet . loads , groups ) ;
650
650
651
651
// determine the kind of the bottom group
652
652
var curGroupDeclarative = startingLoad . isDeclarative == groups . length % 2 ;
0 commit comments