Browse Source

Only a single batch is returned.

Piotrek Koszuliński 9 years ago
parent
commit
fa50b60c0a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/ckeditor5-utils/src/batchify.js

+ 3 - 3
packages/ckeditor5-utils/src/batchify.js

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