Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -370,8 +370,8 @@ |
371 | 371 | }, |
372 | 372 | |
373 | 373 | // Get sub captions by language key: |
374 | | - getSubCaptions: function( langKey, callback ){ |
375 | | - for( var i=0; i < this.textSources.length ) { |
| 374 | + getSubCaptions: function( langKey, callback ){ |
| 375 | + for( var i=0; i < this.textSources.length; i++ ) { |
376 | 376 | var source = this.textSources[ i ]; |
377 | 377 | if( source.srclang.toLowerCase() == langKey ) { |
378 | 378 | var source = this.textSources[ i ]; |