8
0
Просмотр исходного кода

Minor comments and API docs changes.

Piotrek Koszuliński 9 лет назад
Родитель
Сommit
d10070545a
2 измененных файлов с 7 добавлено и 7 удалено
  1. 4 4
      packages/ckeditor5-ui/src/template.js
  2. 3 3
      packages/ckeditor5-ui/tests/template.js

+ 4 - 4
packages/ckeditor5-ui/src/template.js

@@ -910,10 +910,10 @@ function extendTemplateDefinition( def, extDef, defSiblings ) {
  * @typedef ui.TemplateDefinition
  * @type Object
  * @property {String} tag
- * @property {Array} [children]
- * @property {Object} [attributes]
- * @property {String} [text]
- * @property {Object} [on]
+ * @property {Array.<ui.TemplateDefinition|ui.TemplateValueSchema} [children]
+ * @property {Object.<String,ui.TemplateValueSchema>} [attributes]
+ * @property {String|ui.TemplateValueSchema} [text]
+ * @property {Object.<String,ui.TemplateListenerSchema>} [on]
  */
 
 /**

+ 3 - 3
packages/ckeditor5-ui/tests/template.js

@@ -98,7 +98,7 @@ describe( 'Template', () => {
 			} ).to.throw( CKEditorError, /ui-template-wrong-syntax/ );
 		} );
 
-		it( 'creates a HTMLElement', () => {
+		it( 'creates HTMLElement', () => {
 			const el = new Template( {
 				tag: 'p',
 			} ).render();
@@ -345,7 +345,7 @@ describe( 'Template', () => {
 			expect( el.outerHTML ).to.be.equal( '<div class="a b" x="bar"></div>' );
 		} );
 
-		it( 'applies doesn\'t apply new child to an HTMLElement – Text Node', () => {
+		it( 'doesn\'t apply new child to an HTMLElement – Text Node', () => {
 			new Template( {
 				tag: 'div',
 				children: [ 'foo' ]
@@ -354,7 +354,7 @@ describe( 'Template', () => {
 			expect( el.outerHTML ).to.be.equal( '<div></div>' );
 		} );
 
-		it( 'applies doesn\'t apply new child to an HTMLElement – HTMLElement', () => {
+		it( 'doesn\'t apply new child to an HTMLElement – HTMLElement', () => {
 			new Template( {
 				tag: 'div',
 				children: [