r103975 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103974‎ | r103975 | r103976 >
Date:22:57, 22 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Using the full word Difference instead of Diff
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/models/es.TransactionModel.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/models/es.TransactionModel.js
@@ -7,7 +7,7 @@
88 */
99 es.TransactionModel = function( operations ) {
1010 this.operations = es.isArray( operations ) ? operations : [];
11 - this.lengthDiff = 0;
 11+ this.lengthDifference = 0;
1212 };
1313
1414 /* Methods */
@@ -28,8 +28,8 @@
2929 * @method
3030 * @returns {Integer} Difference in content length
3131 */
32 -es.TransactionModel.prototype.getLengthDiff = function() {
33 - return this.lengthDiff;
 32+es.TransactionModel.prototype.getLengthDifference = function() {
 33+ return this.lengthDifference;
3434 };
3535
3636 /**
@@ -83,7 +83,7 @@
8484 'type': 'insert',
8585 'data': data
8686 } );
87 - this.lengthDiff += data.length;
 87+ this.lengthDifference += data.length;
8888 };
8989
9090 /**
@@ -97,7 +97,7 @@
9898 'type': 'remove',
9999 'data': data
100100 } );
101 - this.lengthDiff -= data.length;
 101+ this.lengthDifference -= data.length;
102102 };
103103
104104 /**

Status & tagging log