Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

t/6: Added Controller.addCollection() method #50

Merged
merged 6 commits into from
Jul 28, 2016
Merged

t/6: Added Controller.addCollection() method #50

merged 6 commits into from
Jul 28, 2016

Conversation

oleq
Copy link
Member

@oleq oleq commented Jul 27, 2016

* See {@link ui.ControllerCollection#locale}.
*/
addCollection( collectionName, locale ) {
const collection = new ControllerCollection( collectionName, locale );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to pass the locale? Can't it be taken here from this.view.locale?

* See {@link ui.ControllerCollection#locale}.
* @returns {ui.ControllerCollection} The new collection instance.
*/
addCollection( collectionName, locale ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My previous comment disappeared – can't we take locale from this.view.locale?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea. I'll fix it post–review.

@Reinmar
Copy link
Member

Reinmar commented Jul 28, 2016

If https://github.com/ckeditor/ckeditor5-ui/pull/50/files#r72650075 can be simplified, feel free to create an issue for it. I'm merging the rest of the code.

@Reinmar Reinmar merged commit 0b1145d into master Jul 28, 2016
@Reinmar Reinmar deleted the t/6 branch July 28, 2016 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a shorthand method for registering a controller collection
2 participants