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

i-bem: use resetApplyNext before entering content #653

Open
wants to merge 2 commits into
base: support/2.x
Choose a base branch
from

Conversation

indutny
Copy link
Contributor

@indutny indutny commented Jul 6, 2015

Skip all applyNext() flags before entering the content to support
recursive blocks with applyNext() (see test).

Not sure if the branch is correct.

See: bem/bem-core#899 for cross-reference.

Skip all `applyNext()` flags before entering the `content` to support
recursive blocks with `applyNext()` (see test).
@arikon
Copy link
Member

arikon commented Jul 6, 2015

@indutny What abilities it provides? Could not get it from the bem/bem-core#899 thread =(

@@ -472,6 +472,7 @@ default: {
var content = apply(this._mode = 'content');
if(content || content === 0) {
var isBEM = this.block || this.elem;
resetApplyNext();
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to declare noop-fallback resetApplyNext() as in bem/bem-core#899?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm... after some consideration, I'm not sure how this could be done. This thing is declared in completely different way in bem-core. It is a keyword in old xjst.

@indutny
Copy link
Contributor Author

indutny commented Jul 6, 2015

@arikon it fixes the test ;)

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