Index: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js |
— | — | @@ -217,10 +217,14 @@ |
218 | 218 | changes++; |
219 | 219 | } |
220 | 220 | if ( update && changes ) { |
221 | | - var from = this.model.getNodeFromOffset( this.cursor ); |
| 221 | + var fromNode = this.model.getNodeFromOffset( this.cursor ), |
| 222 | + toNode = this.model.getNodeFromOffset( to ); |
222 | 223 | this.model.traverseLeafNodes( function( node ) { |
223 | 224 | node.emit( 'update' ); |
224 | | - }, from ); |
| 225 | + if ( node === toNode ) { |
| 226 | + return false; |
| 227 | + } |
| 228 | + }, fromNode ); |
225 | 229 | } |
226 | 230 | }; |
227 | 231 | |