Index: trunk/parsers/wikidom/lib/es/es.Document.js |
— | — | @@ -4,7 +4,10 @@ |
5 | 5 | * @returns {Document} |
6 | 6 | */ |
7 | 7 | 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 | + } |
9 | 12 | this.width = null; |
10 | 13 | this.$ = $( '<div class="editSurface-document"></div>' ) |
11 | 14 | .data( 'document', this ); |