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

$mol_text: add spoilers support #693

Merged
merged 5 commits into from
Jul 21, 2024
Merged

$mol_text: add spoilers support #693

merged 5 commits into from
Jul 21, 2024

Conversation

thenesterov
Copy link
Contributor

No description provided.

Comment on lines 320 to 328
@ $mol_mem_key
spoiler_label( index: number ): any {
return this.Spoiler_label(index);
}

@ $mol_mem_key
spoiler_content( index: number ): any {
return this.Spoiler_content(index);
}
Copy link
Member

Choose a reason for hiding this comment

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

А это переименовывание зачем?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Показалось логичным такое именование. Есть метод возвращающий просто текст (spoiler_text), есть методы, которые возвращают текст для конкретных частей спойлеров (например, spoiler_label_text), ну и методы, возвращающие компонент с конкретной частью спойлера (например, spoiler_label).

Copy link
Member

Choose a reason for hiding this comment

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

Тут же просто перекладывание из метода с болшой буквой в метод с маленькой.

@nin-jin nin-jin merged commit 5320aa4 into hyoo-ru:master Jul 21, 2024
20 checks passed
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.

2 participants