@@ -22,7 +22,6 @@ goog.require('shaka.text.TextEngine');
2222goog . require ( 'shaka.util.CmcdManager' ) ;
2323goog . require ( 'shaka.util.Error' ) ;
2424goog . require ( 'shaka.util.Functional' ) ;
25- goog . require ( 'shaka.util.Iterables' ) ;
2625goog . require ( 'shaka.util.LanguageUtils' ) ;
2726goog . require ( 'shaka.util.ManifestParserUtils' ) ;
2827goog . require ( 'shaka.util.MimeUtils' ) ;
@@ -104,7 +103,7 @@ shaka.dash.DashParser = class {
104103
105104 /**
106105 * Period IDs seen in previous manifest.
107- * @private {!Array.<number >}
106+ * @private {!Array.<string >}
108107 */
109108 this . lastManifestUpdatePeriodIds_ = [ ] ;
110109
@@ -555,10 +554,9 @@ shaka.dash.DashParser = class {
555554 const periods = [ ] ;
556555 let prevEnd = 0 ;
557556 const periodNodes = XmlUtils . findChildren ( mpd , 'Period' ) ;
558- // This uses a for-loop rather than a for-of loop because this needs to look
559- // ahead to the next element.
560- const enumerate = ( it ) => shaka . util . Iterables . enumerate ( it ) ;
561- for ( const { i, item : elem , next} of enumerate ( periodNodes ) ) {
557+ for ( let i = 0 ; i < periodNodes . length ; i ++ ) {
558+ const elem = periodNodes [ i ] ;
559+ const next = periodNodes [ i + 1 ] ;
562560 const start = /** @type {number } */ (
563561 XmlUtils . parseAttr ( elem , 'start' , XmlUtils . parseDuration , prevEnd ) ) ;
564562 const periodId = elem . id ;
0 commit comments