r104507 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104506‎ | r104507 | r104508 >
Date:23:29, 28 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix the problem with disappearing selection/ranges elements
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,7 @@
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.$.empty().append( $line );
 629+ this.$.remove( '.es-contentView-line' ).append( $line );
630630 this.lines = [{
631631 'text': ' ',
632632 'range': new es.Range( 0,0 ),

Status & tagging log