r91297 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91296‎ | r91297 | r91298 >
Date:21:23, 1 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added .toString() call on incoming content object, allowing it to support a string, or any object, and let the content object serialize as a string - this is fine for now, but inserting rich content needs to be supported in the future
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js
@@ -34,7 +34,7 @@
3535 for ( var i = 0; i < this.lines.length; i++ ) {
3636 if ( this.lines[i].text.length < offset - lineOffset ) {
3737 this.lines[i].text = this.lines[i].text.substring( 0, offset - lineOffset )
38 - + content
 38+ + content.toString()
3939 + this.lines[i].text.substring( offset - lineOffset )
4040 break;
4141 }

Status & tagging log