bem / bem-xjst

bem-xjst (eXtensible JavaScript Templates): declarative template engine for the browser and server
https://bem.github.io/bem-xjst
Other
115 stars 47 forks source link

Parent elem is merged to JS params of mixed block #81

Closed tadatuta closed 9 years ago

tadatuta commented 9 years ago

For BEMJSON

{
    block: 'b1',
    elem: 'e1',
    mix: { block: 'b2', js: true }
}

with default templates the result is

<div data-bem="{&quot;b2__e1&quot;:{}}" class="b1__e1 b2 i-bem"></div>

but

<div data-bem="{&quot;b2&quot;:{}}" class="b1__e1 b2 i-bem"></div>

expected.

indutny commented 9 years ago

I would say it is a bit inconsistent, but... fixed in b9a426d