bem / bh

BH template engine
http://bem.github.io/bh/
MIT License
68 stars 31 forks source link

mix: Do not add block class when mix with it's own mods #27

Closed tadatuta closed 10 years ago

tadatuta commented 10 years ago

E.g. bemjson:

{
    block: 'bla'
}

with template

module.exports = function(bh) {
    bh.match('bla', function(ctx, json) {
        ctx.mix({
            mods: { m1: 'v1' }
        });
    });
}

results in <div class="bla bla bla_m1_v1"> (bla is duplicated).

mishanga commented 10 years ago

OK, I'll fix it.

mishanga commented 10 years ago

Fixed in 1.2.0