8
0
Piotrek Koszuliński 9 лет назад
Родитель
Сommit
8336b79b68
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/ckeditor5-ui/src/controller.js

+ 2 - 0
packages/ckeditor5-ui/src/controller.js

@@ -159,6 +159,7 @@ export default class Controller {
 	 * @param {String} collectionName Name of the controller collection.
 	 * @param {utils.Locale} [locale] The {@link ckeditor5.Editor#locale editor's locale} instance.
 	 * See {@link ui.ControllerCollection#locale}.
+	 * @returns {ui.ControllerCollection} The new collection instance.
 	 */
 	addCollection( collectionName, locale ) {
 		const collection = new ControllerCollection( collectionName, locale );
@@ -184,6 +185,7 @@ export default class Controller {
 	 *
 	 * @param {String} collectionName Name of the Controller Collection.
 	 * @param {ui.Controller|Number} toRemove A Controller instance or index to be removed.
+	 * @returns {Object} The removed item.
 	 */
 	remove( collectionName, toRemove ) {
 		return this.collections.get( collectionName ).remove( toRemove );