mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Fixed some jshint issues
This commit is contained in:
parent
22892f2ab0
commit
b2fcdf952a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue