r113275 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113274‎ | r113275 | r113276 >
Date:19:33, 7 March 2012
Author:rmoen
Status:ok
Tags:
Comment:
cleanup whitespace
Modified paths:
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js
@@ -1,6 +1,6 @@
22 /**
33 * Creates an ve.ce.Surface object.
4 - *
 4+ *
55 * @class
66 * @constructor
77 * @param {jQuery} $container DOM Container to render surface into
@@ -97,7 +97,7 @@
9898 range, method, annotation
9999 );
100100
101 - this.autoRender = true;
 101+ this.autoRender = true;
102102 this.model.transact( tx );
103103 this.autoRender = false;
104104
@@ -163,7 +163,7 @@
164164 setTimeout( function() {
165165 var key = $('#paste').hide().text().replace( /\s/gm, '' );
166166
167 - if ( _this.clipboard[key] ) {
 167+ if ( _this.clipboard[key] ) {
168168 // transact
169169 var tx = _this.documentView.model.prepareInsertion(
170170 insertionPoint, _this.clipboard[key]
@@ -316,7 +316,7 @@
317317 nodeOffset + 1 + sameFromLeft,
318318 nodeOffset + 1 + this.poll.prevText.length - sameFromRight
319319 ) ) );
320 - newData = text.substring( sameFromLeft, text.length - sameFromRight ).split( '' );
 320+ newData = text.substring( sameFromLeft, text.length - sameFromRight ).split( '' );
321321 ve.dm.DocumentNode.addAnnotationsToData( newData, annotations );
322322 this.model.transact( this.documentView.model.prepareInsertion(
323323 nodeOffset + 1 + sameFromLeft,
@@ -527,7 +527,7 @@
528528
529529 ve.ce.Surface.getDOMText2 = function( elem ) {
530530 // 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');
532532 return ve.ce.Surface.getDOMText( elem ).replace( regex, ' ' );
533533 };
534534

Sign-offs

UserFlagDate
Krinkleinspected19:35, 7 March 2012

Status & tagging log