Преглед на файлове

Documentation: update core.ui documentation.
Fix @mixins with @mixes.

Maciej Gołaszewski преди 9 години
родител
ревизия
9b9a94a23c

+ 1 - 1
packages/ckeditor5-ui/src/collection.js

@@ -20,7 +20,7 @@ import utils from './utils.js';
  * configured through the constructor of the collection.
  *
  * @class Collection
- * @mixins EventEmitter
+ * @mixes EventEmitter
  */
 
 export default class Collection {

+ 1 - 1
packages/ckeditor5-ui/src/config.js

@@ -14,7 +14,7 @@ import utils from './utils.js';
  * Handles a configuration dictionary.
  *
  * @class core.Config
- * @mixins core.ObservableMixin
+ * @mixes core.ObservableMixin
  */
 
 export default class Config {

+ 1 - 1
packages/ckeditor5-ui/src/editable/editable.js

@@ -13,7 +13,7 @@ import ObservableMixin from '../observablemixin.js';
 /**
  * @memberOf core.editable
  * @extends core.ui.Controller
- * @mixins core.ObservableMixin
+ * @mixes core.ObservableMixin
  */
 export default class Editable extends Controller {
 	/**

+ 1 - 1
packages/ckeditor5-ui/src/editorui.js

@@ -14,7 +14,7 @@ import ObservableMixin from './observablemixin.js';
  *
  * @class core.EditorUI
  * @extends core.ui.Controller
- * @mixins core.ObservableMixin
+ * @mixes core.ObservableMixin
  */
 
 export default class EditorUI extends Controller {

+ 2 - 4
packages/ckeditor5-ui/src/emittermixin.js

@@ -15,11 +15,9 @@ let eventsCounter = 0;
 /**
  * Mixin that injects the events API into its host.
  *
- * @singleton
- * @class core.EmitterMixin
- * @implementes core.Emitter
+ * @mixin core.EmitterMixin
+ * @implements core.Emitter
  */
-
 const EmitterMixin = {
 	/**
 	 * Registers a callback function to be executed when an event is fired.

+ 1 - 1
packages/ckeditor5-ui/src/observablemixin.js

@@ -20,7 +20,7 @@ const boundAttributesSymbol = Symbol( 'boundAttributes' );
  *
  * @singleton
  * @class core.ObservableMixin
- * @mixins EmitterMixin
+ * @mixes core.EmitterMixin
  * @implements core.Observable
  */
 

+ 9 - 10
packages/ckeditor5-ui/src/ui/controller.js

@@ -13,37 +13,36 @@ import utils from '../utils.js';
 /**
  * Basic Controller class.
  *
- * @class core.ui.Controller
- * @mixins EmitterMixin
+ * @memberOf core.ui
+ * @mixes core.EmitterMixin
  */
 
 export default class Controller {
 	/**
-	 * Creates an instance of the {@link Controller} class.
+	 * Creates an instance of the {@link core.ui.Controller} class.
 	 *
-	 * @param {Model} [model] Model of this Controller.
-	 * @param {View} [view] View instance of this Controller.
-	 * @constructor
+	 * @param {core.ui.Model} [model] Model of this Controller.
+	 * @param {core.ui.View} [view] View instance of this Controller.
 	 */
 	constructor( model, view ) {
 		/**
 		 * Model of this controller.
 		 *
-		 * @type {Model}
+		 * @member {core.ui.Model} core.ui.Controller#model
 		 */
 		this.model = model || null;
 
 		/**
 		 * Set `true` after {@link #init}.
 		 *
-		 * @type {Boolean}
+		 * @member {Boolean} core.ui.Controller#ready
 		 */
 		this.ready = false;
 
 		/**
 		 * View of this controller.
 		 *
-		 * @type {View}
+		 * @member {core.ui.View} core.ui.Controller#view
 		 */
 		this.view = view || null;
 
@@ -51,7 +50,7 @@ export default class Controller {
 		 * A collection of {@link ControllerCollection} instances containing
 		 * child controllers.
 		 *
-		 * @type {Collection}
+		 * @member {core.Collection} core.ui.Controller#collections
 		 */
 		this.collections = new Collection( {
 			idProperty: 'name'

+ 2 - 4
packages/ckeditor5-ui/src/ui/controllercollection.js

@@ -17,8 +17,6 @@ import CKEditorError from '../ckeditorerror.js';
 export default class ControllerCollection extends Collection {
 	/**
 	 * Creates an instance of the ControllerCollection class, initializing it with a name.
-	 *
-	 * @constructor
 	 */
 	constructor( name ) {
 		super();
@@ -42,7 +40,7 @@ export default class ControllerCollection extends Collection {
 		/**
 		 * Parent controller of this collection.
 		 *
-		 * @type {Controller}
+		 * @type {core.ui.Controller}
 		 */
 		this.parent = null;
 	}
@@ -51,7 +49,7 @@ export default class ControllerCollection extends Collection {
 	 * Adds a child controller to the collection. If {@link #parent} {@link Controller}
 	 * instance is ready, the child view is initialized when added.
 	 *
-	 * @param {Controller} controller A child controller.
+	 * @param {core.ui.Controller} controller A child controller.
 	 * @param {Number} [index] Index at which the child will be added to the collection.
 	 * @returns {Promise} A Promise resolved when the child {@link Controller#init} is done.
 	 */

+ 40 - 32
packages/ckeditor5-ui/src/ui/domemittermixin.js

@@ -14,11 +14,10 @@ import log from '../log.js';
  * Creates a ProxyEmitter instance. Such an instance is a bridge between a DOM Node firing events
  * and any Host listening to them. It is backwards compatible with {@link EmitterMixin#on}.
  *
- * @class DOMEmitterMixin
- * @mixins EmitterMixin
- * @implements DOMEmitter
+ * @memberOf core.ui
+ * @mixes core.EmitterMixin
+ * @implements core.ui.DOMEmitter
  */
-
 class ProxyEmitter {
 	/**
 	 * @param {Node} node DOM Node that fires events.
@@ -38,7 +37,7 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 * Collection of native DOM listeners.
 	 *
 	 * @private
-	 * @type {Object}
+	 * @member {Object} core.ui.ProxyEmitter#_domListeners
 	 */
 
 	/**
@@ -53,6 +52,8 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 * event.
 	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
 	 * Lower values are called first.
+	 *
+	 * @method core.ui.ProxyEmitter#on
 	 */
 	on( event ) {
 		// Execute parent class method first.
@@ -85,6 +86,8 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 * @param {Function} callback The function to stop being called.
 	 * @param {Object} [ctx] The context object to be removed, pared with the given callback. To handle cases where
 	 * the same callback is used several times with different contexts.
+	 *
+	 * @method core.ui.ProxyEmitter#off
 	 */
 	off( event ) {
 		// Execute parent class method first.
@@ -106,6 +109,8 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
 	 * Note: A native DOM Event is passed as an argument.
 	 *
 	 * @param {String} event
+	 *
+	 * @method core.ui.ProxyEmitter#_createDomListener
 	 * @returns {Function} The DOM listener callback.
 	 */
 	_createDomListener( event ) {
@@ -129,38 +134,36 @@ extend( ProxyEmitter.prototype, EmitterMixin, {
  * Mixin that injects the DOM events API into its host. It provides the API
  * compatible with {@link EmitterMixin}.
  *
- *                               listenTo( click, ... )
- *                 +-----------------------------------------+
- *                 |              stopListening( ... )       |
- *  +----------------------------+                           |             addEventListener( click, ... )
- *  | Host                       |                           |   +---------------------------------------------+
- *  +----------------------------+                           |   |       removeEventListener( click, ... )     |
- *  | _listeningTo: {            |                +----------v-------------+                                   |
- *  |   UID: {                   |                | ProxyEmitter           |                                   |
- *  |     emitter: ProxyEmitter, |                +------------------------+                      +------------v----------+
- *  |     callbacks: {           |                | events: {              |                      | Node (HTMLElement)    |
- *  |       click: [ callbacks ] |                |   click: [ callbacks ] |                      +-----------------------+
- *  |     }                      |                | },                     |                      | data-cke-expando: UID |
- *  |   }                        |                | _domNode: Node,        |                      +-----------------------+
- *  | }                          |                | _domListeners: {},     |                                   |
- *  | +------------------------+ |                | _emitterId: UID        |                                   |
- *  | | DOMEmitterMixin        | |                +--------------^---------+                                   |
- *  | +------------------------+ |                           |   |                                             |
- *  +--------------^-------------+                           |   +---------------------------------------------+
- *                 |                                         |                  click (DOM Event)
- *                 +-----------------------------------------+
- *                             fire( click, DOM Event )
+ *                                  listenTo( click, ... )
+ *                    +-----------------------------------------+
+ *                    |              stopListening( ... )       |
+ *     +----------------------------+                           |             addEventListener( click, ... )
+ *     | Host                       |                           |   +---------------------------------------------+
+ *     +----------------------------+                           |   |       removeEventListener( click, ... )     |
+ *     | _listeningTo: {            |                +----------v-------------+                                   |
+ *     |   UID: {                   |                | ProxyEmitter           |                                   |
+ *     |     emitter: ProxyEmitter, |                +------------------------+                      +------------v----------+
+ *     |     callbacks: {           |                | events: {              |                      | Node (HTMLElement)    |
+ *     |       click: [ callbacks ] |                |   click: [ callbacks ] |                      +-----------------------+
+ *     |     }                      |                | },                     |                      | data-cke-expando: UID |
+ *     |   }                        |                | _domNode: Node,        |                      +-----------------------+
+ *     | }                          |                | _domListeners: {},     |                                   |
+ *     | +------------------------+ |                | _emitterId: UID        |                                   |
+ *     | | DOMEmitterMixin        | |                +--------------^---------+                                   |
+ *     | +------------------------+ |                           |   |                                             |
+ *     +--------------^-------------+                           |   +---------------------------------------------+
+ *                    |                                         |                  click (DOM Event)
+ *                    +-----------------------------------------+
+ *                                fire( click, DOM Event )
  *
- * @singleton
- * @class DOMEmitterMixin
- * @mixins EmitterMixin
- * @implements DOMEmitter
+ * @mixin core.ui.DOMEmitterMixin
+ * @mixes core.EmitterMixin
+ * @implements core.ui.DOMEmitter
  */
-
 const DOMEmitterMixin = extend( {}, EmitterMixin, {
 	/**
 	 * Registers a callback function to be executed when an event is fired in a specific Emitter or DOM Node.
-	 * It is backwards compatible with {@link EmitterMixin#listenTo}.
+	 * It is backwards compatible with {@link core.EmitterMixin#listenTo}.
 	 *
 	 * @param {Emitter|Node} emitter The object that fires the event.
 	 * @param {String} event The name of the event.
@@ -168,6 +171,8 @@ const DOMEmitterMixin = extend( {}, EmitterMixin, {
 	 * @param {Object} [ctx] The object that represents `this` in the callback. Defaults to `emitter`.
 	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
 	 * Lower values are called first.
+	 *
+	 * @method core.ui.DOMEmitterMixin#listenTo
 	 */
 	listenTo() {
 		const args = Array.prototype.slice.call( arguments );
@@ -197,6 +202,8 @@ const DOMEmitterMixin = extend( {}, EmitterMixin, {
 	 * for all events from `emitter`.
 	 * @param {Function} [callback] (Requires the `event`) The function to be removed from the call list for the given
 	 * `event`.
+	 *
+	 * @method core.ui.DOMEmitterMixin#stopListening
 	 */
 	stopListening() {
 		const args = Array.prototype.slice.call( arguments );
@@ -224,6 +231,7 @@ const DOMEmitterMixin = extend( {}, EmitterMixin, {
 	 * Retrieves ProxyEmitter instance for given DOM Node residing in this Host.
 	 *
 	 * @param {Node} node DOM Node of the ProxyEmitter.
+	 * @method core.ui.DOMEmitterMixin#_getProxyEmitter
 	 * @return {ProxyEmitter} ProxyEmitter instance or null.
 	 */
 	_getProxyEmitter( node ) {

+ 2 - 4
packages/ckeditor5-ui/src/ui/model.js

@@ -12,17 +12,15 @@ import ObservableMixin from '../observablemixin.js';
 /**
  * The base MVC model class.
  *
- * @class core.ui.Model
- * @mixins core.ObservableMixin
+ * @memberOf core.ui
+ * @mixes core.ObservableMixin
  */
-
 export default class Model {
 	/**
 	 * Creates a new Model instance.
 	 *
 	 * @param {Object} [attributes] The model state attributes to be defined during the instance creation.
 	 * @param {Object} [properties] The (out of state) properties to be appended to the instance during creation.
-	 * @method constructor
 	 */
 	constructor( attributes, properties ) {
 		// Extend this instance with the additional (out of state) properties.

+ 4 - 7
packages/ckeditor5-ui/src/ui/region.js

@@ -10,36 +10,33 @@ import Collection from '../collection.js';
 /**
  * Basic Region class.
  *
- * @class Region
- * @extends Model
+ * @memberOf core.ui
  */
-
 export default class Region {
 	/**
 	 * Creates an instance of the {@link Region} class.
 	 *
 	 * @param {String} name The name of the Region.
-	 * @constructor
 	 */
 	constructor( name ) {
 		/**
 		 * The name of the region.
 		 *
-		 * @type {String}
+		 * @member {String} core.ui.Region#name
 		 */
 		this.name = name;
 
 		/**
 		 * Views which belong to the region.
 		 *
-		 * @type {Collection}
+		 * @member {Collection} core.ui.Region#views
 		 */
 		this.views = new Collection();
 
 		/**
 		 * Element of this region (see {@link #init}).
 		 *
-		 * @type {HTMLElement}
+		 * @member {HTMLElement} core.ui.Region#element
 		 */
 		this.element = null;
 	}

+ 20 - 21
packages/ckeditor5-ui/src/ui/template.js

@@ -12,29 +12,27 @@ import CKEditorError from '../ckeditorerror.js';
 /**
  * Basic Template class.
  *
- * @class Template
+ * @memberOf core.ui
  */
-
 export default class Template {
 	/**
 	 * Creates an instance of the {@link Template} class.
 	 *
-	 * @param {TemplateDefinition} definition The definition of the template.
-	 * @constructor
+	 * @param {core.ui.TemplateDefinition} def The definition of the template.
 	 */
 	constructor( def ) {
 		/**
 		 * Definition of this template.
 		 *
-		 * @type {TemplateDefinition}
+		 * @type {core.ui.TemplateDefinition}
 		 */
 		this.definition = def;
 	}
 
 	/**
-	 * Renders DOM Node using {@link #definition}.
+	 * Renders DOM Node using {@link core.ui.Template#definition}.
 	 *
-	 * See: {@link #apply}.
+	 * @see core.ui.Template#apply
 	 *
 	 * @returns {HTMLElement}
 	 */
@@ -43,11 +41,12 @@ export default class Template {
 	}
 
 	/**
-	 * Applies template {@link #def} to existing DOM tree.
+	 * Applies template {@link core.ui.Template#def} to existing DOM tree.
 	 *
 	 * **Note:** No new DOM nodes (elements, text nodes) will be created.
 	 *
-	 * See: {@link #render}, {@link View#applyTemplateToElement}.
+	 * @see core.ui.Template#render
+	 * @see View#applyTemplateToElement.
 	 *
 	 * @param {Node} element Root element for template to apply.
 	 */
@@ -68,7 +67,7 @@ export default class Template {
 	 * Renders a DOM Node from definition.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition} def Definition of a Node.
+	 * @param {core.ui.TemplateDefinition} def Definition of a Node.
 	 * @param {Node} applyNode If specified, template `def` will be applied to existing DOM Node.
 	 * @param {Boolean} intoFragment If set, children are rendered into DocumentFragment.
 	 * @returns {HTMLElement} A rendered Node.
@@ -103,7 +102,7 @@ export default class Template {
 	 * Renders an HTMLElement from TemplateDefinition.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition} def Definition of an element.
+	 * @param {core.ui.TemplateDefinition} def Definition of an element.
 	 * @param {HTMLElement} applyElement If specified, template `def` will be applied to existing HTMLElement.
 	 * @param {Boolean} intoFragment If set, children are rendered into DocumentFragment.
 	 * @returns {HTMLElement} A rendered element.
@@ -166,7 +165,7 @@ export default class Template {
 	 * Renders element attributes from definition.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition} def Definition of an element.
+	 * @param {core.ui.TemplateDefinition} def Definition of an element.
 	 * @param {HTMLElement} el Element which is rendered.
 	 */
 	_renderElementAttributes( def, el ) {
@@ -209,10 +208,10 @@ export default class Template {
 
 	/**
 	 * Recursively renders element children from definition by
-	 * calling {@link #_renderElement}.
+	 * calling {@link core.ui.Template#_renderElement}.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition} def Definition of an element.
+	 * @param {core.ui.TemplateDefinition} def Definition of an element.
 	 * @param {HTMLElement} el Element which is rendered.
 	 * @param {Boolean} isApply Traverse existing DOM structure only, don't modify DOM.
 	 */
@@ -232,7 +231,7 @@ export default class Template {
 	 * Activates element `on` listeners passed in element definition.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition} def Definition of an element.
+	 * @param {core.ui.TemplateDefinition} def Definition of an element.
 	 * @param {HTMLElement} el Element which is rendered.
 	 */
 	_activateElementListenerAttachers( def, el ) {
@@ -262,7 +261,7 @@ export default class Template {
 /**
  * Returns an object consisting of `set` and `remove` functions, which
  * can be used in the context of DOM Node to set or reset `textContent`.
- * See {@link View#_getModelBinder}.
+ * @see core.ui.View#_getModelBinder
  *
  * @private
  * @param {Node} node DOM Node to be modified.
@@ -283,7 +282,7 @@ function getTextNodeUpdater( node ) {
 /**
  * Returns an object consisting of `set` and `remove` functions, which
  * can be used in the context of DOM Node to set or reset an attribute.
- * See {@link View#_getModelBinder}.
+ * @see core.ui.View#_getModelBinder
  *
  * @private
  * @param {Node} node DOM Node to be modified.
@@ -304,7 +303,7 @@ function getElementAttributeUpdater( el, attrName ) {
 
 /**
  * Definition of {@link Template}.
- * See: {@link TemplateValueSchema}.
+ * See: {@link core.ui.TemplateValueSchema}.
  *
  *		{
  *			tag: 'p',
@@ -336,7 +335,7 @@ function getElementAttributeUpdater( el, attrName ) {
  *			}
  *		}
  *
- * @typedef TemplateDefinition
+ * @typedef core.ui.TemplateDefinition
  * @type Object
  * @property {String} tag
  * @property {Array} [children]
@@ -348,7 +347,7 @@ function getElementAttributeUpdater( el, attrName ) {
 
 /**
  * Describes a value of HTMLElement attribute or `textContent`.
- * See: {@link TemplateDefinition}.
+ * See: {@link core.ui.TemplateDefinition}.
  *
  *		{
  *			tag: 'p',
@@ -364,6 +363,6 @@ function getElementAttributeUpdater( el, attrName ) {
  *			}
  *		}
  *
- * @typedef TemplateValueSchema
+ * @typedef core.ui.TemplateValueSchema
  * @type {Object|String|Array}
  */

+ 35 - 40
packages/ckeditor5-ui/src/ui/view.js

@@ -19,27 +19,25 @@ const bindIfSymbol = Symbol( 'bind-if' );
 /**
  * Basic View class.
  *
- * @class core.ui.View
- * @mixins DOMEmitterMixin
+ * @memberOf core.ui
+ * @mixes DOMEmitterMixin
  */
-
 export default class View {
 	/**
 	 * Creates an instance of the {@link View} class.
 	 *
-	 * @param {Model} model (View)Model of this View.
-	 * @constructor
+	 * @param {core.ui.Model} model (View)Model of this View.
 	 */
 	constructor( model ) {
 		/**
 		 * Model of this view.
 		 *
-		 * @type {Model}
+		 * @type {core.ui.Model}
 		 */
 		this.model = model || null;
 
 		/**
-		 * Regions of this view. See {@link #register}.
+		 * Regions of this view. See {@link core.ui.View#register}.
 		 *
 		 * @type {Collection}
 		 */
@@ -55,7 +53,7 @@ export default class View {
 		this.template = null;
 
 		/**
-		 * Region selectors of this view. See {@link #register}.
+		 * Region selectors of this view. See {@link core.ui.View#register}.
 		 *
 		 * @private
 		 * @type {Object}
@@ -71,7 +69,7 @@ export default class View {
 		this._element = null;
 
 		/**
-		 * An instance of Template to generate {@link #_el}.
+		 * An instance of Template to generate {@link core.ui.View#_el}.
 		 *
 		 * @private
 		 * @type {Template}
@@ -81,9 +79,7 @@ export default class View {
 
 	/**
 	 * Element of this view. The element is rendered on first reference
-	 * using {@link #template} definition and {@link #_template} object.
-	 *
-	 * @property element
+	 * using {@link core.ui.View#template} definition and {@link core.ui.View#_template} object.
 	 */
 	get element() {
 		if ( this._element ) {
@@ -121,7 +117,6 @@ export default class View {
 	 * is synchronized with {@link View#model}.
 	 *
 	 * @readonly
-	 * @property attributeBinder
 	 */
 	get attributeBinder() {
 		if ( this._attributeBinder ) {
@@ -149,7 +144,7 @@ export default class View {
 			 * @property {attributeBinder.to}
 			 * @param {String} attribute Name of {@link View#model} used in the binding.
 			 * @param {Function} [callback] Allows processing of the value. Accepts `Node` and `value` as arguments.
-			 * @return {ViewModelBinding}
+			 * @return {core.ui.ViewModelBinding}
 			 */
 			to( attribute, callback ) {
 				return {
@@ -186,7 +181,7 @@ export default class View {
 			 * @param {String} attribute Name of {@link View#model} used in the binding.
 			 * @param {String} [valueIfTrue] Value set when {@link View#model} attribute is not undefined/null/false/''.
 			 * @param {Function} [callback] Allows processing of the value. Accepts `Node` and `value` as arguments.
-			 * @return {ViewModelBinding}
+			 * @return {core.ui.ViewModelBinding}
 			 */
 			if( attribute, valueIfTrue, callback ) {
 				return {
@@ -210,7 +205,7 @@ export default class View {
 	}
 
 	/**
-	 * Registers a region in {@link #regions}.
+	 * Registers a region in {@link core.ui.View#regions}.
 	 *
 	 *		let view = new View();
 	 *
@@ -229,7 +224,7 @@ export default class View {
 	 * @param {String|Region} stringOrRegion The name or an instance of the Region
 	 * to be registered. If `String`, the region will be created on the fly.
 	 * @param {String|Function|true} regionSelector The selector to retrieve region's element
-	 * in DOM when the region instance is initialized (see {@link Region#init}, {@link #init}).
+	 * in DOM when the region instance is initialized (see {@link Region#init}, {@link core.ui.View#init}).
 	 * @param {Boolean} [override] When set `true` it will allow overriding of registered regions.
 	 */
 	register( ...args ) {
@@ -308,7 +303,7 @@ export default class View {
 	 * See: {@link Template#apply}.
 	 *
 	 * @param {DOMElement} element DOM Element to initialize.
-	 * @param {TemplateDefinition} def Template definition to be applied.
+	 * @param {core.ui.TemplateDefinition} def Template definition to be applied.
 	 */
 	applyTemplateToElement( element, def ) {
 		// Prepare pre–defined listeners.
@@ -323,8 +318,8 @@ export default class View {
 	/**
 	 * Destroys the view instance. The process includes:
 	 *
-	 * 1. Removal of child views from {@link #regions}.
-	 * 2. Destruction of the {@link #regions}.
+	 * 1. Removal of child views from {@link core.ui.View#regions}.
+	 * 2. Destruction of the {@link core.ui.View#regions}.
 	 * 3. Removal of {#link #_el} from DOM.
 	 */
 	destroy() {
@@ -348,8 +343,8 @@ export default class View {
 	}
 
 	/**
-	 * Initializes {@link #regions} of this view by passing a DOM element
-	 * generated from {@link #_regionsSelectors} into {@link Region#init}.
+	 * Initializes {@link core.ui.View#regions} of this view by passing a DOM element
+	 * generated from {@link core.ui.View#_regionsSelectors} into {@link Region#init}.
 	 *
 	 * @protected
 	 */
@@ -423,22 +418,22 @@ export default class View {
 	}
 
 	/**
-	 * For given {@link TemplateValueSchema} found by (@link _extendTemplateWithModelBinders} containing
-	 * {@link ViewModelBinding} it returns a function, which when called by {@link Template#render}
+	 * For given {@link core.ui.TemplateValueSchema} found by (@link _extendTemplateWithModelBinders} containing
+	 * {@link core.ui.ViewModelBinding} it returns a function, which when called by {@link Template#render}
 	 * or {@link Template#apply} activates the binding and sets its initial value.
 	 *
-	 * Note: {@link TemplateValueSchema} can be for HTMLElement attributes or Text Node `textContent`.
+	 * Note: {@link core.ui.TemplateValueSchema} can be for HTMLElement attributes or Text Node `textContent`.
 	 *
 	 * @protected
-	 * @param {TemplateValueSchema}
+	 * @param {core.ui.TemplateValueSchema}
 	 * @return {Function}
 	 */
 	_getModelBinder( valueSchema ) {
 		valueSchema = normalizeBinderValueSchema( valueSchema );
 
 		/**
-		 * Assembles the value using {@link TemplateValueSchema} and stores it in a form of
-		 * an Array. Each entry of an Array corresponds to one of {@link TemplateValueSchema}
+		 * Assembles the value using {@link core.ui.TemplateValueSchema} and stores it in a form of
+		 * an Array. Each entry of an Array corresponds to one of {@link core.ui.TemplateValueSchema}
 		 * items.
 		 *
 		 * @private
@@ -467,7 +462,7 @@ export default class View {
 
 		/**
 		 * Attaches a listener to {@link View#model}, which updates DOM with a value constructed from
-		 * {@link TemplateValueSchema} when {@link View#model} attribute value changes.
+		 * {@link core.ui.TemplateValueSchema} when {@link View#model} attribute value changes.
 		 *
 		 * This function is called by {@link Template#render} or {@link Template#apply}.
 		 *
@@ -515,12 +510,12 @@ export default class View {
 
 	/**
 	 * Iterates over "attributes" and "text" properties in {@link TemplateDefinition} and
-	 * locates existing {@link ViewModelBinding} created by {@link #attributeBinder}.
+	 * locates existing {@link core.ui.ViewModelBinding} created by {@link core.ui.View#attributeBinder}.
 	 * Then, for each such a binding, it creates corresponding entry in {@link Template#_modelBinders},
 	 * which can be then activated by {@link Template#render} or {@link Template#apply}.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition}
+	 * @param {core.ui.TemplateDefinition} def
 	 */
 	_extendTemplateWithModelBinders( def ) {
 		const attributes = def.attributes;
@@ -566,7 +561,7 @@ export default class View {
 	 * of an element, attaches native DOM listener to that element.
 	 *
 	 * @protected
-	 * @param {TemplateDefinition} def Template definition.
+	 * @param {core.ui.TemplateDefinition} def Template definition.
 	 */
 	_extendTemplateWithListenerAttachers( def ) {
 		const on = def.on;
@@ -638,7 +633,7 @@ function isValidRegionSelector( selector ) {
 }
 
 /**
- * Normalizes given {@link TemplateValueSchema} it's always in an Array–like format:
+ * Normalizes given {@link core.ui.TemplateValueSchema} it's always in an Array–like format:
  *
  * 		{ attributeName/text: 'bar' } ->
  * 			{ attributeName/text: [ 'bar' ] }
@@ -649,7 +644,7 @@ function isValidRegionSelector( selector ) {
  * 		{ attributeName/text: [ 'bar', { model: ..., modelAttributeName: ... }, 'baz' ] }
  *
  * @private
- * @param {TemplateValueSchema} valueSchema
+ * @param {core.ui.TemplateValueSchema} valueSchema
  * @returns {Array}
  */
 function normalizeBinderValueSchema( valueSchema ) {
@@ -657,11 +652,11 @@ function normalizeBinderValueSchema( valueSchema ) {
 }
 
 /**
- * Checks whether given {@link TemplateValueSchema} contains a
- * {@link ViewModelBinding}.
+ * Checks whether given {@link core.ui.TemplateValueSchema} contains a
+ * {@link core.ui.ViewModelBinding}.
  *
  * @private
- * @param {TemplateValueSchema} valueSchema
+ * @param {core.ui.TemplateValueSchema} valueSchema
  * @returns {Boolean}
  */
 function hasModelBinding( valueSchema ) {
@@ -690,11 +685,11 @@ function binderValueReducer( prev, cur ) {
 /**
  * Describes Model binding created by {@link View#attributeBinder}.
  *
- * @typedef ViewModelBinding
+ * @typedef core.ui.ViewModelBinding
  * @type Object
  * @property {Symbol} type
- * @property {Model} model
+ * @property {core.ui.Model} model
  * @property {String} attribute
  * @property {String} [valueIfTrue]
- * @property {Funcion} [callback]
+ * @property {Function} [callback]
  */