https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101904
Revision: 101904
Author: inez
Date: 2011-11-03 22:51:30 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
Minot optimization
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
Modified: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
===================================================================
--- trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-03 22:49:14 UTC (rev 101903)
+++ trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-03 22:51:30 UTC (rev 101904)
@@ -236,9 +236,7 @@
this.selection.normalize();
if ( instruction === 'left') {
if ( this.keyboard.keys.shift ) {
- this.showCursor(
-
this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 )
- );
+ this.selection.to =
this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 );
this.drawSelection();
this.hideCursor();
} else {
@@ -251,9 +249,7 @@
} else if ( instruction === 'right' ) {
if ( this.keyboard.keys.shift ) {
- this.showCursor(
-
this.documentView.getModel().getRelativeContentOffset( this.selection.to, 1 )
- );
+ this.selection.to =
this.documentView.getModel().getRelativeContentOffset( this.selection.to, 1 );
this.drawSelection();
this.hideCursor();
} else {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs