https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102057

Revision: 102057
Author:   tparscal
Date:     2011-11-04 22:04:51 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Fixed some jshint issues

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-04 22:04:18 UTC (rev 102056)
+++ trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js    
2011-11-04 22:04:51 UTC (rev 102057)
@@ -284,9 +284,9 @@
        } else if ( instruction === 'home' ) {
                this.cursor.initialLeft = null;
                to = this.documentView.getRenderedLineRangeFromOffset(
-                       this.cursor.initialBias
-                               ? 
this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 )
-                               : this.selection.to
+                       this.cursor.initialBias ?
+                               
this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) :
+                                       this.selection.to
                ).start;
                if ( !this.keyboard.keys.shift ) {
                        from = to;
@@ -294,9 +294,9 @@
        } else if ( instruction === 'end' ) {
                this.cursor.initialLeft = null;
                to = this.documentView.getRenderedLineRangeFromOffset(
-                       this.cursor.initialBias
-                               ? 
this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 )
-                               : this.selection.to
+                       this.cursor.initialBias ?
+                               
this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) :
+                                       this.selection.to
                ).end;
                if ( !this.keyboard.keys.shift ) {
                        from = to;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to