Using the full word Difference instead of Diff

This commit is contained in:
Trevor Parscal 2011-11-22 22:57:23 +00:00
parent 6b19489742
commit df88d82181

View file

@ -7,7 +7,7 @@
*/
es.TransactionModel = function( operations ) {
this.operations = es.isArray( operations ) ? operations : [];
this.lengthDiff = 0;
this.lengthDifference = 0;
};
/* Methods */
@ -28,8 +28,8 @@ es.TransactionModel.prototype.getOperations = function() {
* @method
* @returns {Integer} Difference in content length
*/
es.TransactionModel.prototype.getLengthDiff = function() {
return this.lengthDiff;
es.TransactionModel.prototype.getLengthDifference = function() {
return this.lengthDifference;
};
/**
@ -83,7 +83,7 @@ es.TransactionModel.prototype.pushInsert = function( data ) {
'type': 'insert',
'data': data
} );
this.lengthDiff += data.length;
this.lengthDifference += data.length;
};
/**
@ -97,7 +97,7 @@ es.TransactionModel.prototype.pushRemove = function( data ) {
'type': 'remove',
'data': data
} );
this.lengthDiff -= data.length;
this.lengthDifference -= data.length;
};
/**