Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | /** |
3 | 3 | * Creates an ve.ce.Surface object. |
4 | | - * |
| 4 | + * |
5 | 5 | * @class |
6 | 6 | * @constructor |
7 | 7 | * @param {jQuery} $container DOM Container to render surface into |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | range, method, annotation |
99 | 99 | ); |
100 | 100 | |
101 | | - this.autoRender = true; |
| 101 | + this.autoRender = true; |
102 | 102 | this.model.transact( tx ); |
103 | 103 | this.autoRender = false; |
104 | 104 | |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | setTimeout( function() { |
165 | 165 | var key = $('#paste').hide().text().replace( /\s/gm, '' ); |
166 | 166 | |
167 | | - if ( _this.clipboard[key] ) { |
| 167 | + if ( _this.clipboard[key] ) { |
168 | 168 | // transact |
169 | 169 | var tx = _this.documentView.model.prepareInsertion( |
170 | 170 | insertionPoint, _this.clipboard[key] |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | nodeOffset + 1 + sameFromLeft, |
318 | 318 | nodeOffset + 1 + this.poll.prevText.length - sameFromRight |
319 | 319 | ) ) ); |
320 | | - newData = text.substring( sameFromLeft, text.length - sameFromRight ).split( '' ); |
| 320 | + newData = text.substring( sameFromLeft, text.length - sameFromRight ).split( '' ); |
321 | 321 | ve.dm.DocumentNode.addAnnotationsToData( newData, annotations ); |
322 | 322 | this.model.transact( this.documentView.model.prepareInsertion( |
323 | 323 | nodeOffset + 1 + sameFromLeft, |
— | — | @@ -527,7 +527,7 @@ |
528 | 528 | |
529 | 529 | ve.ce.Surface.getDOMText2 = function( elem ) { |
530 | 530 | // TODO: there must be some better way to write this regex replace |
531 | | - var regex = new RegExp('[' + String.fromCharCode(32) + String.fromCharCode(160) + ']', 'g'); |
| 531 | + var regex = new RegExp('[' + String.fromCharCode(32) + String.fromCharCode(160) + ']', 'g'); |
532 | 532 | return ve.ce.Surface.getDOMText( elem ).replace( regex, ' ' ); |
533 | 533 | }; |
534 | 534 | |