浏览代码

Only a single batch is returned.

Piotrek Koszuliński 9 年之前
父节点
当前提交
fa50b60c0a
共有 1 个文件被更改,包括 3 次插入3 次删除
  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;
 		}
 	}