@@ -568,7 +568,7 @@ function logloads(loads) {
568568 // 1. groups is an already-interleaved array of group kinds
569569 // 2. load.groupIndex is set when this function runs
570570 // 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 ) {
572572 groups [ load . groupIndex ] = groups [ load . groupIndex ] || [ ] ;
573573
574574 // if the load already has a group index and its in its group, its already been done
@@ -596,7 +596,7 @@ function logloads(loads) {
596596 if ( loadDep . groupIndex === undefined || loadDep . groupIndex < loadDepGroupIndex ) {
597597
598598 // if already in a group, remove from the old group
599- if ( loadDep . groupIndex ) {
599+ if ( loadDep . groupIndex !== undefined ) {
600600 groups [ loadDep . groupIndex ] . splice ( indexOf . call ( groups [ loadDep . groupIndex ] , loadDep ) , 1 ) ;
601601
602602 // if the old group is empty, then we have a mixed depndency cycle
@@ -607,7 +607,7 @@ function logloads(loads) {
607607 loadDep . groupIndex = loadDepGroupIndex ;
608608 }
609609
610- buildLinkageGroups ( loadDep , loads , groups , loader ) ;
610+ buildLinkageGroups ( loadDep , loads , groups ) ;
611611 }
612612 }
613613 }
@@ -646,7 +646,7 @@ function logloads(loads) {
646646 var groups = [ ] ;
647647 var startingLoad = linkSet . loads [ 0 ] ;
648648 startingLoad . groupIndex = 0 ;
649- buildLinkageGroups ( startingLoad , linkSet . loads , groups , loader ) ;
649+ buildLinkageGroups ( startingLoad , linkSet . loads , groups ) ;
650650
651651 // determine the kind of the bottom group
652652 var curGroupDeclarative = startingLoad . isDeclarative == groups . length % 2 ;
0 commit comments