Skip to content

i-bem: Method getMods always returns empty hash #591

@tenorok

Description

@tenorok

If we have block declaration:

BEM.decl('my-block');

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions