Browse Source

Moved properties descriptions.

Piotr Jasiun 10 years ago
parent
commit
057c65aa7b

+ 13 - 14
packages/ckeditor5-utils/src/document/attribute.js

@@ -24,23 +24,22 @@ CKEDITOR.define( function() {
 		 * @param {Mixed} value Attribute value
 		 */
 		constructor( key, value ) {
+			/**
+			 * Attribute key
+			 *
+			 * @readonly
+			 * @property {String} key
+			 */
 			this.key = key;
+
+			/**
+			 * Attribute value
+			 *
+			 * @readonly
+			 * @property {Mixed} value
+			 */
 			this.value = value;
 		}
-
-		/**
-		 * Attribute key
-		 *
-		 * @readonly
-		 * @property {String} key
-		 */
-
-		/**
-		 * Attribute value
-		 *
-		 * @readonly
-		 * @property {Mixed} value
-		 */
 	}
 
 	return Attribute;

+ 6 - 7
packages/ckeditor5-utils/src/document/character.js

@@ -20,15 +20,14 @@ CKEDITOR.define( [ 'document/node' ], function( Node ) {
 		constructor( parent, character, attrs ) {
 			super( parent, attrs );
 
+			/**
+			 * Described character.
+			 *
+			 * @readonly
+			 * @property {String} character
+			 */
 			this.character = character;
 		}
-
-		/**
-		 * Described character.
-		 *
-		 * @readonly
-		 * @property {String} character
-		 */
 	}
 
 	return Character;

+ 12 - 7
packages/ckeditor5-utils/src/document/element.js

@@ -24,16 +24,21 @@ CKEDITOR.define( [ 'document/node' ], function( Node ) {
 		constructor( parent, name, attrs ) {
 			super( parent, attrs );
 
+			/**
+			 * Element name.
+			 *
+			 * @readonly
+			 * @property {String} name
+			 */
 			this.name = name;
+
+			/**
+			 * Array of children nodes.
+			 *
+			 * @property {Array} children
+			 */
 			this.children = [];
 		}
-
-		/**
-		 * Element name.
-		 *
-		 * @readonly
-		 * @property {String} name
-		 */
 	}
 
 	return Element;

+ 12 - 13
packages/ckeditor5-utils/src/document/node.js

@@ -21,24 +21,23 @@ CKEDITOR.define( function() {
 		 * @param {Array} attrs Array of attributes.
 		 */
 		constructor( parent, attrs ) {
+			/**
+			 * Parent element.
+			 *
+			 * @readonly
+			 * @property {document.Element} parent
+			 */
 			this.parent = parent;
+
+			/**
+			 * Array of attributes.
+			 *
+			 * @property {Array} attr
+			 */
 			this.attrs = attrs || [];
 		}
 
 		/**
-		 * Parent element.
-		 *
-		 * @readonly
-		 * @property {document.Element} parent
-		 */
-
-		/**
-		 * Array of attributes.
-		 *
-		 * @property {Array} attr
-		 */
-
-		/**
 		 * Dept of the node, which equals total number of its parents.
 		 *
 		 * @readonly