Skip to content

4.3.2

Closed Jan 19, 2016 100% complete

2016-01-19, v4.3.2, @miripiruni

From this moment we have intelligible changelog. Hooray!

elem === '' means no elem. Example:

// BEMJSON:
{ block: 'b2', elem: '' }
// Result:
'<div class="b2"></div>'

Now BEM-XJST will ignore empty string as modName and elemModName. Example:

// BEMJSON:
{ block: 'a', mods: { '': 'b' } }
// Result:
'<div class="a"></div>'

/…

2016-01-19, v4.3.2, @miripiruni

From this moment we have intelligible changelog. Hooray!

elem === '' means no elem. Example:

// BEMJSON:
{ block: 'b2', elem: '' }
// Result:
'<div class="b2"></div>'

Now BEM-XJST will ignore empty string as modName and elemModName. Example:

// BEMJSON:
{ block: 'a', mods: { '': 'b' } }
// Result:
'<div class="a"></div>'

// BEMJSON:
{ block: 'a', elem: 'b', elemMods: { '': 'c' } }
// Result:
'<div class="a__b"></div>'

Commits:

  • [41604e3567] - Port of 6c427cc (#152): class-builder: elem === '' means no elem (miripiruni)
  • [62763e6b16] - Port of 0872a8b (#164): should ignore empty string as modName and elemModName (miripiruni)
  • [e11506e010] - CHANGELOG.md added (miripiruni)
  • [74055c9e23] - travis: Run tests on node 4 (Vladimir Grinenko)
Loading