r110915 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110914‎ | r110915 | r110916 >
Date:06:55, 8 February 2012
Author:christian
Status:deferred
Tags:
Comment:
removing offset override
Modified paths:
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.es.Surface.js
@@ -163,9 +163,7 @@
164164 var offset1 = this.getOffset( selection.anchorNode, selection.anchorOffset );
165165 var offset2 = this.getOffset( selection.focusNode, selection.focusOffset );
166166
167 - var blah = this.model.getDocument().getRelativeContentOffset( offset2, -1 );
168 -
169 - return new ve.Range( offset1, blah );
 167+ return new ve.Range( offset1, offset2 );
170168 }
171169 };
172170

Status & tagging log