Skip to content

i-bem: use resetApplyNext before entering content#899

Merged
aristov merged 2 commits into
v2from
feature/skip-apply-next-in-content
Jul 9, 2015
Merged

i-bem: use resetApplyNext before entering content#899
aristov merged 2 commits into
v2from
feature/skip-apply-next-in-content

Conversation

@indutny

@indutny indutny commented Mar 5, 2015

Copy link
Copy Markdown
Contributor

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

Depends on: veged/xjst#41

@indutny

indutny commented Mar 5, 2015

Copy link
Copy Markdown
Contributor Author

cc @veged, this is what you has dreamt about :D

@qfox

qfox commented Mar 5, 2015

Copy link
Copy Markdown
Member

👍 :-D

@veged veged added the ready label Apr 29, 2015
@indutny indutny changed the title i-bem: use skipApplyNext before entering content i-bem: use resetApplyNext before entering content May 6, 2015
@indutny

indutny commented May 6, 2015

Copy link
Copy Markdown
Contributor Author

Turns out skipApplyNext is not required to accomplish this. The only problem with resetApplyNext is that it breaks the page block, and this block in fact needs to be fixed anyway.

@indutny indutny force-pushed the feature/skip-apply-next-in-content branch from 5dce5f1 to edfc122 Compare May 6, 2015 16:02
@indutny

indutny commented May 6, 2015

Copy link
Copy Markdown
Contributor Author

Updated PR, please re-review. ;)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why not just applyNext({ 'ctx.tag': 'span' }) without local?

@indutny

indutny commented May 10, 2015

Copy link
Copy Markdown
Contributor Author

@veged: done

@veged

veged commented May 12, 2015

Copy link
Copy Markdown
Member

we also need to do same in https://github.com/bem/bem-core/blob/feature/skip-apply-next-in-content/common.blocks/i-bem/i-bem.bemtree and separate pull request for v3 branch

@aristov

aristov commented May 14, 2015

Copy link
Copy Markdown
Contributor

@indutny ping

@aristov

aristov commented May 14, 2015

Copy link
Copy Markdown
Contributor

@indutny also we need the same in bem-bl.

@apsavin

apsavin commented Jun 18, 2015

Copy link
Copy Markdown
Contributor

Guys?..
When it will be merged? Do you have any estimations?

@tadatuta

Copy link
Copy Markdown
Member

@indutny ping?

@apsavin

apsavin commented Jun 30, 2015

Copy link
Copy Markdown
Contributor

@veged ?.. @indutny ?..

@indutny

indutny commented Jul 2, 2015

Copy link
Copy Markdown
Contributor Author

Going to land it everywhere soon ;) Sorry for the waiting.

@indutny

indutny commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

@veged pushed commit for bemtree

@indutny

indutny commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

PR for v3: #1085

Skip all `applyNext()` flags before entering the `content` to support
recursive blocks with `applyNext()` (see test).
@indutny indutny force-pushed the feature/skip-apply-next-in-content branch from 6460deb to b1dc50c Compare July 5, 2015 23:21
indutny added a commit to veged/xjst that referenced this pull request Jul 6, 2015
@indutny

indutny commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

Old xjst support: veged/xjst@3cc9749

@indutny

indutny commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

Ooops, decided to do it in 0.10 branch instead.

indutny added a commit to veged/xjst that referenced this pull request Jul 6, 2015
@indutny

indutny commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

Here it goes: veged/xjst@3169083

@indutny

indutny commented Jul 6, 2015

Copy link
Copy Markdown
Contributor Author

Here goes the bem-bl patch: bem/bem-bl#653 . Sorry for a looong delay, it must have been very frustrating for you.

aristov pushed a commit that referenced this pull request Jul 9, 2015
i-bem: use resetApplyNext before entering `content`
@aristov aristov merged commit 3c2836f into v2 Jul 9, 2015
@aristov aristov removed the ready label Jul 9, 2015
@aristov aristov deleted the feature/skip-apply-next-in-content branch July 9, 2015 13:24
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.

6 participants