Szymon Cofalik преди 9 години
родител
ревизия
f3551957ad
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      packages/ckeditor5-engine/src/treemodel/element.js
  2. 1 1
      packages/ckeditor5-engine/src/treemodel/node.js

+ 1 - 1
packages/ckeditor5-engine/src/treemodel/element.js

@@ -135,7 +135,7 @@ export default class Element extends Node {
 	}
 
 	/**
-	 * Sets attribute on the element. If attribute with the same key already is set, it overwrites its values.
+	 * Sets attribute on the element. If attribute with the same key already is set, it overwrites its value.
 	 *
 	 * @param {String} key Key of attribute to set.
 	 * @param {*} value Attribute value.

+ 1 - 1
packages/ckeditor5-engine/src/treemodel/node.js

@@ -92,7 +92,7 @@ export default class Node {
 	 * The top parent for the node. If node has no parent it is the root itself.
 	 *
 	 * @readonly
-	 * @type {Number}
+	 * @type {engine.treeModel.Element}
 	 */
 	get root() {
 		let root = this;