r91621 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91620‎ | r91621 | r91622 >
Date:00:04, 7 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Blocks should be added to Document using method appendBlock - this way reference between those two is set (block.document = this)
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Document.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Document.js
@@ -4,7 +4,10 @@
55 * @returns {Document}
66 */
77 function Document( blocks ) {
8 - this.blocks = blocks || [];
 8+ this.blocks = [];
 9+ for( var i = 0; i < blocks.length; i++ ) {
 10+ this.appendBlock(blocks[i]);
 11+ }
912 this.width = null;
1013 this.$ = $( '<div class="editSurface-document"></div>' )
1114 .data( 'document', this );

Status & tagging log