Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Решение задачи 1-notification #4

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

renat890
Copy link

Прошу проверить решение задачи 5 модуля 1-notification

@jsru-1
Copy link
Contributor

jsru-1 commented Oct 22, 2024

Добавляю преподавателя (@ufocoder) для код-ревью.


hide() {
if (this.element && this.element.parentNode) {
this.element.parentNode.removeChild(this.element);

Choose a reason for hiding this comment

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

this.element.remove()


NotificationMessage.lastComponentShow = this;

this.element = this.createElement(target);

Choose a reason for hiding this comment

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

выглядит как лишняя строка

@jsru-1
Copy link
Contributor

jsru-1 commented Oct 22, 2024

Проверьте, пожалуйста, ваше решение, не все тесты прошли (PR не будет принят до тех пор, пока все добавленные задачи не будут решены).

@jsru-1 jsru-1 merged commit aa0e7ba into js-tasks-ru:master Oct 22, 2024
1 check failed
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.

3 participants