r102057 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102056‎ | r102057 | r102058 >
Date:22:04, 4 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed some jshint issues
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
@@ -284,9 +284,9 @@
285285 } else if ( instruction === 'home' ) {
286286 this.cursor.initialLeft = null;
287287 to = this.documentView.getRenderedLineRangeFromOffset(
288 - this.cursor.initialBias
289 - ? this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 )
290 - : this.selection.to
 288+ this.cursor.initialBias ?
 289+ this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) :
 290+ this.selection.to
291291 ).start;
292292 if ( !this.keyboard.keys.shift ) {
293293 from = to;
@@ -294,9 +294,9 @@
295295 } else if ( instruction === 'end' ) {
296296 this.cursor.initialLeft = null;
297297 to = this.documentView.getRenderedLineRangeFromOffset(
298 - this.cursor.initialBias
299 - ? this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 )
300 - : this.selection.to
 298+ this.cursor.initialBias ?
 299+ this.documentView.getModel().getRelativeContentOffset( this.selection.to, -1 ) :
 300+ this.selection.to
301301 ).end;
302302 if ( !this.keyboard.keys.shift ) {
303303 from = to;

Status & tagging log