|
@@ -30,7 +30,7 @@
|
|
|
* in order to transform it to the output.
|
|
* in order to transform it to the output.
|
|
|
*/
|
|
*/
|
|
|
export default function batchify( diff, output ) {
|
|
export default function batchify( diff, output ) {
|
|
|
- const batches = [];
|
|
|
|
|
|
|
+ const batch = [];
|
|
|
let left = 0;
|
|
let left = 0;
|
|
|
let right = 0;
|
|
let right = 0;
|
|
|
let lastOperation;
|
|
let lastOperation;
|
|
@@ -73,11 +73,11 @@ export default function batchify( diff, output ) {
|
|
|
|
|
|
|
|
pushLast();
|
|
pushLast();
|
|
|
|
|
|
|
|
- return batches;
|
|
|
|
|
|
|
+ return batch;
|
|
|
|
|
|
|
|
function pushLast() {
|
|
function pushLast() {
|
|
|
if ( lastOperation ) {
|
|
if ( lastOperation ) {
|
|
|
- batches.push( lastOperation );
|
|
|
|
|
|
|
+ batch.push( lastOperation );
|
|
|
lastOperation = null;
|
|
lastOperation = null;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|