Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -427,7 +427,7 @@ |
428 | 428 | sourceSplitableNode = es.DocumentViewNode.getSplitableNode( sourceNode ); |
429 | 429 | targetSplitableNode = es.DocumentViewNode.getSplitableNode( targetNode ); |
430 | 430 | } |
431 | | - |
| 431 | + |
432 | 432 | this.selection.from = this.selection.to = targetOffset; |
433 | 433 | this.showCursor(); |
434 | 434 | |
— | — | @@ -699,11 +699,13 @@ |
700 | 700 | if ( this.cursor.interval ) { |
701 | 701 | clearInterval( this.cursor.interval ); |
702 | 702 | } |
| 703 | + |
| 704 | + var _this = this; |
703 | 705 | this.cursor.interval = setInterval( function( surface ) { |
704 | | - surface.cursor.$.css( 'display', function( index, value ) { |
| 706 | + _this.cursor.$.css( 'display', function( index, value ) { |
705 | 707 | return value === 'block' ? 'none' : 'block'; |
706 | 708 | } ); |
707 | | - }, 500, this ); |
| 709 | + }, 500 ); |
708 | 710 | }; |
709 | 711 | |
710 | 712 | /** |