|
|
@@ -31,9 +31,9 @@ export default class ChangeBuffer {
|
|
|
* Creates a new instance of the ChangeBuffer.
|
|
|
*
|
|
|
* @param {engine.treeModel.Document} document
|
|
|
- * @param {Number} limit Maximum number of atomic changes which can be contained in one batch.
|
|
|
+ * @param {Number} [limit=20] Maximum number of atomic changes which can be contained in one batch.
|
|
|
*/
|
|
|
- constructor( doc, limit ) {
|
|
|
+ constructor( doc, limit = 20 ) {
|
|
|
/**
|
|
|
* Instance of the document.
|
|
|
*
|
|
|
@@ -85,7 +85,7 @@ export default class ChangeBuffer {
|
|
|
|
|
|
/**
|
|
|
* Current batch to which a feature should add its deltas. Once the {@link typing.ChangeBuffer#size}
|
|
|
- * reach or exceedes the {@link typing.ChangeBuffer#limit}, then the batch is set to a new instance and size is reset.
|
|
|
+ * reach or exceeds the {@link typing.ChangeBuffer#limit}, then the batch is set to a new instance and size is reset.
|
|
|
*
|
|
|
* @type {engine.treeModel.batch.Batch}
|
|
|
*/
|
|
|
@@ -99,7 +99,7 @@ export default class ChangeBuffer {
|
|
|
|
|
|
/**
|
|
|
* Input number of changes into the buffer. Once the {@link typing.ChangeBuffer#size}
|
|
|
- * reach or exceedes the {@link typing.ChangeBuffer#limit}, then the batch is set to a new instance and size is reset.
|
|
|
+ * reach or exceeds the {@link typing.ChangeBuffer#limit}, then the batch is set to a new instance and size is reset.
|
|
|
*
|
|
|
* @param {Number} changeCount Number of atomic changes to input.
|
|
|
*/
|