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

menu: move iteration through content in templates to menu_mode #1534

Closed
wants to merge 1 commit into from
Closed

menu: move iteration through content in templates to menu_mode #1534

wants to merge 1 commit into from

Conversation

Guria
Copy link
Contributor

@Guria Guria commented Jun 2, 2015

I'll take a luck again
resolves #1513
rebased and reworked #1520

@tadatuta
Copy link
Member

tadatuta commented Jun 2, 2015

tests on templates passed, gemini failed because of external account

@@ -10,7 +10,7 @@
},
{
tech : 'spec.js',
mustDeps : { tech : 'bemhtml', block : 'menu' }
mustDeps : { tech : 'bemhtml', block : 'menu', mods : { mode : 'radio' } }
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем нужен mustDeps от _mode_radio и что делать если он не нужен?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Чтобы menu_mode.bemhtml и menu_mode_radio.bemhtml подключался в клиентский js для технологии spec.js. В противном случае падали тесты menu_mode_*.spec.js.
Похоже, что подключение именно _mode_radio избыточно (делал по аналогии с секцией tmpl-spec.js) и можно ограничиться декларированием mods : { mode : true } (тесты проходят)

Copy link
Contributor

Choose a reason for hiding this comment

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

Если не ошибаюсь, можно указать так: mods: [ { name: 'mode' } ].

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mods : { mode : true } - работает
mods: [ { name: 'mode' } ] - не работает
может mod?

Copy link
Contributor

Choose a reason for hiding this comment

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

По поводу массива - это можно названия модификаторов перечислять строкой. Например:

mods : ['mode', 'visibility']

@aristov
Copy link
Contributor

aristov commented Jul 9, 2015

Поскольку мы нашли решение изначальной задачи, этот PR закрываем. Переоткрыть в случае необходимости.

@aristov aristov closed this Jul 9, 2015
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.

None yet

5 participants