From b2fcdf952a62666dcb63b891a73daa452fb1246d Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 4 Nov 2011 22:04:51 +0000 Subject: [PATCH] Fixed some jshint issues --- modules/es/views/es.SurfaceView.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/es/views/es.SurfaceView.js b/modules/es/views/es.SurfaceView.js index 0749dfe446..90ee014dd0 100644 --- a/modules/es/views/es.SurfaceView.js +++ b/modules/es/views/es.SurfaceView.js @@ -284,9 +284,9 @@ es.SurfaceView.prototype.moveCursor = function( instruction ) { } 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 @@ es.SurfaceView.prototype.moveCursor = function( instruction ) { } 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;