8
0
Эх сурвалжийг харах

Minor docs changes in core.treeView Position and Text classes.

Szymon Kupś 9 жил өмнө
parent
commit
a7194343b3

+ 1 - 1
packages/ckeditor5-engine/src/treeview/position.js

@@ -39,7 +39,7 @@ export default class Position {
 	 * Returns a new instance of Position with offset incremented by `shift` value.
 	 *
 	 * @param {Number} shift How position offset should get changed. Accepts negative values.
-	 * @returns {treeView.Position} Shifted position.
+	 * @returns {core.treeView.Position} Shifted position.
 	 */
 	getShiftedBy( shift ) {
 		let shifted = Position.createFromPosition( this );

+ 3 - 3
packages/ckeditor5-engine/src/treeview/text.js

@@ -36,7 +36,7 @@ export default class Text extends Node {
 	/**
 	 * Clones this node.
 	 *
-	 * @returns {Text} Text node that is a clone of this node.
+	 * @returns {core.treeView.Text} Text node that is a clone of this node.
 	 */
 	clone() {
 		return new Text( this.data );
@@ -61,8 +61,8 @@ export default class Text extends Node {
 	 * Checks if this text node is the same as other text node.
 	 * Both nodes should have the same data to be considered as same.
 	 *
-	 * @param otherNode
-	 * @returns {boolean}
+	 * @param {core.treeView.Text} otherNode Node to check if it is same as this node.
+	 * @returns {Boolean}
 	 */
 	same( otherNode ) {
 		if ( !( otherNode instanceof Text ) ) {