Fixed some jshint issues

This commit is contained in:
Trevor Parscal 2011-11-04 22:04:51 +00:00
parent 22892f2ab0
commit b2fcdf952a

View file

@ -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;