If we have block declaration:
And will create its instance:
var b = BEM.create({ block: 'my-block', mods: { a: 1, b: 2 }});
We can see:
console.log(b._modCache) // {a: 1, b: 2, js: "inited"}
console.log(b.getMods()); // {} — WTF?
console.log(b._modCache) // {} — WTF?