Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decl.normalize failed on elem: elem, mods: Array #344

Open
Vittly opened this issue Aug 20, 2018 · 0 comments
Open

decl.normalize failed on elem: elem, mods: Array #344

Vittly opened this issue Aug 20, 2018 · 0 comments

Comments

@Vittly
Copy link
Collaborator

Vittly commented Aug 20, 2018

decl.normalize({ block: 'b', elems: {elem:'e',mods:['m1', 'm2']} })
/*
[ BemCell { entity: { block: 'b' } },
  BemCell { entity: { block: 'b', elem: 'e' } },
  BemCell { entity: { block: 'b', elem: 'e', mod: { name: '0', val: true } } }, // Whyyy?
  BemCell { entity: { block: 'b', elem: 'e', mod: { name: '0', val: 'm1' } } },
  BemCell { entity: { block: 'b', elem: 'e', mod: { name: '1', val: true } } },
  BemCell { entity: { block: 'b', elem: 'e', mod: { name: '1', val: 'm2' } } } ]
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant