瀏覽代碼

Internal: Renamed document parameter to doc in DocumentSelection.

Oskar Wróbel 8 年之前
父節點
當前提交
737a5255e7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      packages/ckeditor5-engine/src/model/documentselection.js

+ 4 - 4
packages/ckeditor5-engine/src/model/documentselection.js

@@ -51,9 +51,9 @@ export default class DocumentSelection extends Selection {
 	/**
 	 * Creates an empty live selection for given {@link module:engine/model/document~Document}.
 	 *
-	 * @param {module:engine/model/document~Document} document Document which owns this selection.
+	 * @param {module:engine/model/document~Document} doc Document which owns this selection.
 	 */
-	constructor( document ) {
+	constructor( doc ) {
 		super();
 
 		/**
@@ -62,7 +62,7 @@ export default class DocumentSelection extends Selection {
 		 * @protected
 		 * @member {module:engine/model/model~Model}
 		 */
-		this._model = document.model;
+		this._model = doc.model;
 
 		/**
 		 * Document which owns this selection.
@@ -70,7 +70,7 @@ export default class DocumentSelection extends Selection {
 		 * @protected
 		 * @member {module:engine/model/document~Document}
 		 */
-		this._document = document;
+		this._document = doc;
 
 		/**
 		 * Keeps mapping of attribute name to priority with which the attribute got modified (added/changed/removed)