Index: trunk/extensions/VisualEditor/modules/es/models/es.TransactionModel.js |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | */ |
9 | 9 | es.TransactionModel = function( operations ) { |
10 | 10 | this.operations = es.isArray( operations ) ? operations : []; |
11 | | - this.lengthDiff = 0; |
| 11 | + this.lengthDifference = 0; |
12 | 12 | }; |
13 | 13 | |
14 | 14 | /* Methods */ |
— | — | @@ -28,8 +28,8 @@ |
29 | 29 | * @method |
30 | 30 | * @returns {Integer} Difference in content length |
31 | 31 | */ |
32 | | -es.TransactionModel.prototype.getLengthDiff = function() { |
33 | | - return this.lengthDiff; |
| 32 | +es.TransactionModel.prototype.getLengthDifference = function() { |
| 33 | + return this.lengthDifference; |
34 | 34 | }; |
35 | 35 | |
36 | 36 | /** |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | 'type': 'insert', |
85 | 85 | 'data': data |
86 | 86 | } ); |
87 | | - this.lengthDiff += data.length; |
| 87 | + this.lengthDifference += data.length; |
88 | 88 | }; |
89 | 89 | |
90 | 90 | /** |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | 'type': 'remove', |
99 | 99 | 'data': data |
100 | 100 | } ); |
101 | | - this.lengthDiff -= data.length; |
| 101 | + this.lengthDifference -= data.length; |
102 | 102 | }; |
103 | 103 | |
104 | 104 | /** |