Index: trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js |
— | — | @@ -291,11 +291,7 @@ |
292 | 292 | i = 1; |
293 | 293 | |
294 | 294 | do { |
295 | | - if ( direction == 'up' ) { |
296 | | - fakePosition.top -= i++ * 10; |
297 | | - } else { |
298 | | - fakePosition.top += i++ * 10; |
299 | | - } |
| 295 | + ( direction == 'up' ) ? fakePosition.top -= i++ * 10 : fakePosition.top += i++ * 10; |
300 | 296 | offset = this.documentView.getOffsetFromPosition( fakePosition ); |
301 | 297 | fakePosition = this.documentView.getRenderedPosition( offset ); |
302 | 298 | fakePosition.left = this.cursor.initialLeft; |