Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js |
— | — | @@ -378,10 +378,10 @@ |
379 | 379 | es.TextFlow.prototype.appendLine = function( range, wordOffset, fractional ) { |
380 | 380 | var rs = this.renderState, |
381 | 381 | lineCount = rs.lines.length; |
382 | | - $line = this.$.find( '.editSurface-line[line-index=' + lineCount + ']' ); |
| 382 | + $line = this.$.children( '[line-index=' + lineCount + ']' ); |
383 | 383 | if ( !$line.length ) { |
384 | | - $line = $( '<div class="editSurface-line" line-index="' + lineCount + '"></div>' ) |
385 | | - .appendTo( this.$ ); |
| 384 | + $line = $( '<div class="editSurface-line" line-index="' + lineCount + '"></div>' ); |
| 385 | + this.$.append( $line ); |
386 | 386 | } |
387 | 387 | $line[0].innerHTML = this.content.render( range ); |
388 | 388 | // Collect line information |