Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js |
— | — | @@ -541,7 +541,6 @@ |
542 | 542 | node: item, |
543 | 543 | offset: offset - nodeOffset |
544 | 544 | }; |
545 | | - break; |
546 | 545 | } else { |
547 | 546 | nodeOffset += length; |
548 | 547 | } |
— | — | @@ -574,8 +573,9 @@ |
575 | 574 | ve.ce.Surface.prototype.showSelection = function( range ) { |
576 | 575 | var start = this.getDOMNodeAndOffset( range.start ), |
577 | 576 | stop = this.getDOMNodeAndOffset( range.end ), |
578 | | - range = rangy.createRange(), |
579 | 577 | sel = rangy.getSelection(); |
| 578 | + // FIXME: Shadowing range, really? |
| 579 | + range = rangy.createRange(); |
580 | 580 | range.setStart( start.node, start.offset ); |
581 | 581 | range.setEnd( stop.node, stop.offset ); |
582 | 582 | sel.setSingleRange( range ); |