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

Support bem-xjst 8.x in compatible way #1486

Merged
merged 1 commit into from
Mar 6, 2017
Merged

Support bem-xjst 8.x in compatible way #1486

merged 1 commit into from
Mar 6, 2017

Conversation

tadatuta
Copy link
Member

@tadatuta tadatuta commented Mar 6, 2017

Closes #1485

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.6%) to 60.674% when pulling af03095 on issues/1485@v4 into 5f020a2 on v4.

Copy link
Contributor

@miripiruni miripiruni left a comment

Choose a reason for hiding this comment

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

Вливай, когда тесты позеленеют…

@@ -1 +1,6 @@
block('ua').js()(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Честно говоря, не представляю кейса, когда нужно отказаться от js:true в блоке ua

@@ -3,6 +3,8 @@ block('page').elem('css')(
tag()('style'),
match(function() { return this.ctx.url; })(
tag()('link'),
attrs()(function() { return { rel : 'stylesheet', href : this.ctx.url }; })
attrs()(function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Кстати, не желаешь начать использовать аргументы вместо this и this.ctx здесь и в другом месте?

function(node, ctx) {

Copy link
Member Author

Choose a reason for hiding this comment

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

думаю, это нужно делать одним махом везде, чтобы консистентно было.

@tadatuta tadatuta merged commit 9589667 into v4 Mar 6, 2017
@tadatuta tadatuta deleted the issues/1485@v4 branch March 6, 2017 14:27
@tadatuta tadatuta removed the ready label Mar 6, 2017
var ctxJS = applyNext();

if(ctxJS === false) return false;
return ctxJS || true;
Copy link
Member

Choose a reason for hiding this comment

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

А это не то же самое, что и return applyNext() !== false;?

Copy link
Contributor

Choose a reason for hiding this comment

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

@zxqfox нет, вот проверочный bemjson: { block: 'ua', js: { test: 1 } }

Copy link
Member

@qfox qfox Feb 19, 2018

Choose a reason for hiding this comment

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

var res = applyNext(); return res !== false && (res || true); ?

Copy link
Member

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants