Piotr Jasiun преди 10 години
родител
ревизия
cd1d729841

+ 1 - 0
packages/ckeditor5-utils/src/document/attribute.js

@@ -17,6 +17,7 @@ CKEDITOR.define( [ 'utils' ], function( utils ) {
 		 *
 		 * @param {String} key Attribute key
 		 * @param {Mixed} value Attribute value
+		 * @constructor
 		 */
 		constructor( key, value ) {
 			/**

+ 1 - 3
packages/ckeditor5-utils/src/document/changeoperation.js

@@ -7,13 +7,11 @@
 
 CKEDITOR.define( [ 'document/operation', 'ckeditorerror', 'utils' ], function( Operation, CKEditorError, utils ) {
 	/**
-	 *
-	 *
 	 * @class document.Operation
 	 */
 	class ChangeOperation extends Operation {
 		/**
-		 *
+		 * @constructor
 		 */
 		constructor( ranges, oldAttr, newAttr, baseVersion ) {
 			super( baseVersion );

+ 1 - 0
packages/ckeditor5-utils/src/document/character.js

@@ -16,6 +16,7 @@ CKEDITOR.define( [ 'document/node' ], function( Node ) {
 		 * Creates character linear item.
 		 *
 		 * @param {String} character Described character.
+		 * @constructor
 		 */
 		constructor( character, attrs ) {
 			super( attrs );

+ 2 - 0
packages/ckeditor5-utils/src/document/document.js

@@ -19,6 +19,8 @@ CKEDITOR.define( [
 	class Document {
 		/**
 		 * Create an empty document.
+		 *
+		 * @constructor
 		 */
 		constructor() {
 			/**

+ 1 - 0
packages/ckeditor5-utils/src/document/element.js

@@ -21,6 +21,7 @@ CKEDITOR.define( [ 'document/node', 'document/nodelist' ], function( Node, NodeL
 		 * @param {Array} attrs Array of {@link document.Attribute attributes}.
 		 * @param {document.Node|document.Text|document.NodeList|String|Array} nodes List of nodes to be inserted.
 		 * List of nodes can be any type accepted by the {@link document.NodeList} constructor.
+		 * @constructor
 		 */
 		constructor( name, attrs, children ) {
 			super( attrs );

+ 1 - 1
packages/ckeditor5-utils/src/document/insertoperation.js

@@ -13,7 +13,7 @@ CKEDITOR.define( [ 'document/operation', 'document/nodelist', 'document/removeop
 	 */
 	class InsertOperation extends Operation {
 		/**
-		 *
+		 * @constructor
 		 */
 		constructor( position, nodeList, baseVersion ) {
 			super( baseVersion );

+ 1 - 1
packages/ckeditor5-utils/src/document/moveoperation.js

@@ -18,7 +18,7 @@ CKEDITOR.define( [
 	 */
 	class MoveOperation extends Operation {
 		/**
-		 *
+		 * @constructor
 		 */
 		constructor( sourcePosition, targetPosition, nodeList, baseVersion ) {
 			super( baseVersion );

+ 1 - 0
packages/ckeditor5-utils/src/document/node.js

@@ -20,6 +20,7 @@ CKEDITOR.define( [ 'document/attribute', 'utils' ], function( Attribute, utils )
 		 * Created node has no parent. Parent of the node is set when it is attached to the {@link document.Element}.
 		 *
 		 * @param {Array} attrs Array of attributes.
+		 * @constructor
 		 */
 		constructor( attrs ) {
 			/**

+ 1 - 0
packages/ckeditor5-utils/src/document/nodelist.js

@@ -51,6 +51,7 @@ CKEDITOR.define( [
 		 *		nodeListB.length // 3
 		 *
 		 * @param {document.Node|document.Text|document.NodeList|String|Array} nodes List of nodes.
+		 * @constructor
 		 */
 		constructor( nodes ) {
 			if ( nodes instanceof NodeList ) {

+ 1 - 3
packages/ckeditor5-utils/src/document/operation.js

@@ -7,13 +7,11 @@
 
 CKEDITOR.define( [], function() {
 	/**
-	 *
-	 *
 	 * @class document.Operation
 	 */
 	class Operation {
 		/**
-		 *
+		 * @constructor
 		 */
 		constructor( baseVersion ) {
 			this.baseVersion = baseVersion;

+ 1 - 0
packages/ckeditor5-utils/src/document/position.js

@@ -18,6 +18,7 @@ CKEDITOR.define( [ 'utils', 'ckeditorerror' ], function( utils, CKEditorError )
 		 *
 		 * @param {Array} path Position path. See {@link #path} property for more information.
 		 * @param {document.Element} root Root element for the path. Note that this element can not have a parent.
+		 * @constructor
 		 */
 		constructor( path, root ) {
 			/**

+ 1 - 0
packages/ckeditor5-utils/src/document/positioniterator.js

@@ -25,6 +25,7 @@ CKEDITOR.define( [
 		 *
 		 * @param {document.Range} [boundaries] Range to define boundaries of the iterator.
 		 * @param {document.Position} [iteratorPosition] Starting position.
+		 * @constructor
 		 */
 		constructor( boundaries, iteratorPosition ) {
 			if ( boundaries instanceof Position ) {

+ 1 - 0
packages/ckeditor5-utils/src/document/range.js

@@ -17,6 +17,7 @@ CKEDITOR.define( [ 'document/positioniterator' ], function( PositionIterator ) {
 		 *
 		 * @param {document.Position} start Start position.
 		 * @param {document.Position} end End position.
+		 * @constructor
 		 */
 		constructor( start, end ) {
 			/**

+ 1 - 1
packages/ckeditor5-utils/src/document/removeoperation.js

@@ -19,7 +19,7 @@ CKEDITOR.define( [
 	 */
 	class RemoveOperation extends Operation {
 		/**
-		 *
+		 * @constructor
 		 */
 		constructor( position, nodes, baseVersion ) {
 			super( baseVersion );

+ 1 - 0
packages/ckeditor5-utils/src/document/text.js

@@ -17,6 +17,7 @@ CKEDITOR.define( [], function() {
 		 * Creates text with attributes.
 		 *
 		 * @param {String} text Described character.
+		 * @constructor
 		 */
 		constructor( text, attrs ) {
 			/**