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

Presence of `cls` adds `i-bem` for node with `bem: false` #498

Closed tadatuta closed 6 years ago

tadatuta commented 6 years ago

Input code or something about issue background

https://goo.gl/FR27oN

// BEMJSON
([
  { block: 'b1', cls: 'anything' },
  { block: 'b1' }
]);

// templates
block('b1')(
  bem()(false),
  js()(true)
);

Expected Behavior

<div class="anything"></div>
<div></div>

Actual Behavior

<div class="anything i-bem"></div>
<div></div>
miripiruni commented 6 years ago

+bem-xjst@8.8.6