浏览代码

Renamed document parameter to doc.

Oskar Wróbel 8 年之前
父节点
当前提交
dbf0e21c4a
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      packages/ckeditor5-typing/src/changebuffer.js

+ 6 - 6
packages/ckeditor5-typing/src/changebuffer.js

@@ -32,17 +32,17 @@ export default class ChangeBuffer {
 	/**
 	 * Creates a new instance of the change buffer.
 	 *
-	 * @param {module:engine/model/document~Document} document
+	 * @param {module:engine/model/document~Document} doc
 	 * @param {Number} [limit=20] The maximum number of atomic changes which can be contained in one batch.
 	 */
-	constructor( document, limit = 20 ) {
+	constructor( doc, limit = 20 ) {
 		/**
 		 * The document instance.
 		 *
 		 * @readonly
 		 * @member {module:engine/model/document~Document} #document
 		 */
-		this.document = document;
+		this.document = doc;
 
 		/**
 		 * The number of atomic changes in the buffer. Once it exceeds the {@link #limit},
@@ -77,11 +77,11 @@ export default class ChangeBuffer {
 			this._reset();
 		};
 
-		document.on( 'change', this._changeCallback );
+		doc.on( 'change', this._changeCallback );
 
-		document.selection.on( 'change:range', this._selectionChangeCallback );
+		doc.selection.on( 'change:range', this._selectionChangeCallback );
 
-		document.selection.on( 'change:attribute', this._selectionChangeCallback );
+		doc.selection.on( 'change:attribute', this._selectionChangeCallback );
 
 		/**
 		 * The current batch instance.