r92521 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92520‎ | r92521 | r92522 >
Date:04:58, 19 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed insertion
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -185,7 +185,6 @@
186186 var deleteSelection = surface.selection;
187187 deleteSelection.normalize();
188188 surface.location = surface.selection.start;
189 - surface.selection = new Selection();
190189 surface.deleteContent( deleteSelection );
191190 }
192191 var insertLocation = surface.location;
@@ -579,7 +578,6 @@
580579 if ( !location.block || !location.offset ) {
581580 throw 'Invalid selection error. Properties for from and to locations expected.';
582581 }
583 - this.deleteContent( this.selection );
584582 this.location.block.insertContent( location.offset, content );
585583 };
586584

Status & tagging log