Skip to content

ocp mokhov #7

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

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

ocp mokhov #7

wants to merge 1 commit into from

Conversation

mokhov
Copy link

@mokhov mokhov commented Apr 2, 2014

No description provided.

@mokhov mokhov changed the title mokhov ocp mokhov Apr 2, 2014

var questionRegion = document.getElementById('questions');
new QuestionView().render(questionRegion, questions);
new QuestionViewChoice(new Question('НЛО?', ['Да', 'Неа']).render());
Copy link
Owner

Choose a reason for hiding this comment

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

PS Иметь такой интерфейс Модели выгодно потому, что он может бесконечно расширяться:

new Question(options)

Вот такой в будущем придется дописать:

new Question(label, choices)

Copy link
Author

Choose a reason for hiding this comment

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

Да, я так и делал, а потом выпил :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants