r101904 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101903‎ | r101904 | r101905 >
Date:22:51, 3 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Minot optimization
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
@@ -236,9 +236,7 @@
237237 this.selection.normalize();
238238 if ( instruction === 'left') {
239239 if ( this.keyboard.keys.shift ) {
240 - this.showCursor(
241 - this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 )
242 - );
 240+ this.selection.to = this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 );
243241 this.drawSelection();
244242 this.hideCursor();
245243 } else {
@@ -251,9 +249,7 @@
252250 } else if ( instruction === 'right' ) {
253251
254252 if ( this.keyboard.keys.shift ) {
255 - this.showCursor(
256 - this.documentView.getModel().getRelativeContentOffset( this.selection.to, 1 )
257 - );
 253+ this.selection.to = this.documentView.getModel().getRelativeContentOffset( this.selection.to, 1 );
258254 this.drawSelection();
259255 this.hideCursor();
260256 } else {

Status & tagging log