r93661 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93660‎ | r93661 | r93662 >
Date:21:40, 1 August 2011
Author:inez
Status:deferred
Tags:
Comment:
In case of lists it is possible that item may contain sublist but not contain text
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Content.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Content.js
@@ -131,6 +131,9 @@
132132 * @returns {Array} List of plain or annotated characters
133133 */
134134 es.Content.convertWikiDomLine = function( wikidomLine ) {
 135+ if ( !wikidomLine ) {
 136+ return [];
 137+ }
135138 // Convert string to array of characters
136139 var data = wikidomLine.text.split('');
137140 var i;

Status & tagging log