Skip to content

Conversation

@PolinaShneider
Copy link
Contributor

image

if (filterButton) {

filterButton.addEventListener('click', filterAction);
filterButton.addEventListener('click', toggleActiveButtonClass);
Copy link
Member

Choose a reason for hiding this comment

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

не нужно вешать дублирующее событие


filterButtons.forEach((button) => {

button.classList.remove('editor-landing__plugins-filter-button--active');
Copy link
Member

Choose a reason for hiding this comment

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

расхардкодить классы

const showInlineToolsOnly = function () {

toggleTools(inlineTools, blockTools);
toggleTools(inlineTools, blockTools, this);
Copy link
Member

Choose a reason for hiding this comment

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

передавать контекст это плохо и не надежно

@PolinaShneider PolinaShneider deleted the editor-landing-improvement branch December 19, 2018 06:31
@PolinaShneider PolinaShneider restored the editor-landing-improvement branch January 23, 2019 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants