r104514 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104513‎ | r104514 | r104515 >
Date:00:00, 29 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fix for empty content rendering issue
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.ContentView.js
@@ -625,7 +625,11 @@
626626 // This is very important for lists
627627 if(this.model.getContentLength() === 0) {
628628 var $line = $( '<div class="es-contentView-line" line-index="0">&nbsp;</div>' );
629 - this.$.remove( '.es-contentView-line' ).append( $line );
 629+ this.$
 630+ .children()
 631+ .remove( '.es-contentView-line' )
 632+ .end()
 633+ .append( $line );
630634 this.lines = [{
631635 'text': ' ',
632636 'range': new es.Range( 0,0 ),

Status & tagging log