Переглянути джерело

Changed NodesSet name to NodeSet.

Piotrek Koszuliński 10 роки тому
батько
коміт
592bf97568

+ 1 - 1
packages/ckeditor5-engine/src/treemodel/delta/insertdelta.js

@@ -24,7 +24,7 @@ export default class InsertDelta extends Delta {}
  * @memberOf treeModel.Batch
  * @method insert
  * @param {treeModel.Position} position Position of insertion.
- * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
+ * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
  * List of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
  */
 register( 'insert', function( position, nodes ) {

+ 1 - 1
packages/ckeditor5-engine/src/treemodel/delta/weakinsertdelta.js

@@ -33,7 +33,7 @@ export default class WeakInsertDelta extends Delta {}
  * @memberOf treeModel.Batch
  * @method weakInsert
  * @param {treeModel.Position} position Position of insertion.
- * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
+ * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
  */
 register( 'weakInsert', function( position, nodes ) {
 	const delta = new WeakInsertDelta();

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

@@ -20,7 +20,7 @@ export default class Element extends Node {
 	 *
 	 * @param {String} name Node name.
 	 * @param {Iterable} attrs Iterable collection of attributes.
-	 * @param {treeModel.NodesSet} children List of nodes to be inserted
+	 * @param {treeModel.NodeSet} children List of nodes to be inserted
 	 * into created element. List of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
 	 * @constructor
 	 */
@@ -84,7 +84,7 @@ export default class Element extends Node {
 	 * Note that the list of children can be modified only in elements not yet attached to the document.
 	 * All attached nodes should be modified using the {@link treeModel.operation.InsertOperation}.
 	 *
-	 * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
+	 * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
 	 */
 	appendChildren( nodes ) {
 		this.insertChildren( this.getChildCount(), nodes );
@@ -97,7 +97,7 @@ export default class Element extends Node {
 	 * All attached nodes should be modified using the {@link treeModel.operation.InsertOperation}.
 	 *
 	 * @param {Number} index Position where nodes should be inserted.
-	 * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
+	 * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
 	 * The list of nodes can be of any type accepted by the {@link treeModel.NodeList} constructor.
 	 */
 	insertChildren( index, nodes ) {

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/nodelist.js

@@ -21,7 +21,7 @@ import CKEditorError from '../ckeditorerror.js';
  * point to the same nodes.
  * * Iterable collection of above items will be iterated over and all items will be added to the node list.
  *
- * @typedef {treeModel.Element|treeModel.CharacterProxy|treeModel.Text|String|treeModel.NodeList|Iterable} treeModel.NodesSet
+ * @typedef {treeModel.Element|treeModel.CharacterProxy|treeModel.Text|String|treeModel.NodeList|Iterable} treeModel.NodeSet
  */
 
 /**
@@ -106,9 +106,9 @@ export default class NodeList {
 	 *		nodeListA === nodeListB // true
 	 *		nodeListB.length // 3
 	 *
-	 * @see {@link treeModel.NodesSet} for more explanation.
+	 * @see {@link treeModel.NodeSet} for more explanation.
 	 *
-	 * @param {treeModel.NodesSet} nodes List of nodes.
+	 * @param {treeModel.NodeSet} nodes List of nodes.
 	 * @constructor
 	 */
 	constructor( nodes ) {

+ 1 - 1
packages/ckeditor5-engine/src/treemodel/operation/insertoperation.js

@@ -21,7 +21,7 @@ export default class InsertOperation extends Operation {
 	 * Creates an insert operation.
 	 *
 	 * @param {treeModel.Position} position Position of insertion.
-	 * @param {treeModel.NodesSet} nodes The list of nodes to be inserted.
+	 * @param {treeModel.NodeSet} nodes The list of nodes to be inserted.
 	 * List of nodes can be any type accepted by the {@link treeModel.NodeList} constructor.
 	 * @param {Number} baseVersion {@link treeModel.Document#version} on which operation can be applied.
 	 * @constructor