Browse Source

Reset buffer when the limit is reached.

Piotr Jasiun 9 years ago
parent
commit
1c06a2c087
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/ckeditor5-typing/src/changebuffer.js

+ 1 - 0
packages/ckeditor5-typing/src/changebuffer.js

@@ -108,6 +108,7 @@ export default class ChangeBuffer {
 
 		if ( this.size >= this.limit ) {
 			this._batch = null;
+			this.size = 0;
 		}
 	}