r92678 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92677‎ | r92678 | r92679 >
Date:20:40, 20 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Allow inserting content at the very beginning of the block (change if statement condition)
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -578,7 +578,7 @@
579579 if ( typeof location === 'undefined' ) {
580580 location = this.location;
581581 }
582 - if ( !location.block || !location.offset ) {
 582+ if ( typeof location.block === 'undefined' || typeof location.offset === 'undefined' ) {
583583 throw 'Invalid selection error. Properties for from and to locations expected.';
584584 }
585585 this.location.block.insertContent( location.offset, content );

Status & tagging log