Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -1567,6 +1567,9 @@ |
1568 | 1568 | for ( var i=0; i < sourcePages.query.allpages.length; i++ ) { |
1569 | 1569 | |
1570 | 1570 | var subPage = sourcePages.query.allpages[i]; |
| 1571 | + if( !subPage || !subPage.title ){ |
| 1572 | + continue; |
| 1573 | + } |
1571 | 1574 | var langKey = subPage.title.split( '.' ); |
1572 | 1575 | var extension = langKey.pop(); |
1573 | 1576 | langKey = langKey.pop(); |