Skip to content

Issue 49#50

Merged
skad0 merged 2 commits intomasterfrom
issue-49
Aug 2, 2016
Merged

Issue 49#50
skad0 merged 2 commits intomasterfrom
issue-49

Conversation

@skad0
Copy link
Copy Markdown
Member

@skad0 skad0 commented Jul 29, 2016

#49

But with small change due to result order. Block and his mods should be first.

@qfox
Copy link
Copy Markdown
Contributor

qfox commented Jul 29, 2016

For DAAAASSS


function add(entity, tech) {
const str = naming.stringify(entity) + tech;
let str = entity.block + '__' + entity.elem + '_' + entity.modName + '_' + entity.modVal;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouh. It's strange

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bem-naming ignore cases where block null or undefined which important for us.

} else {
block = entity.block;
block = entity.block || null;
elem = entity.elem;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I guess this is the same for elem.

Could you add some cases without block and elem?

@qfox
Copy link
Copy Markdown
Contributor

qfox commented Aug 1, 2016

LGTM :shipit:

@Yeti-or
Copy link
Copy Markdown
Member

Yeti-or commented Aug 1, 2016

🎱

skad0 and others added 2 commits August 2, 2016 13:17
tests: add 2 edge cases for single val

specs: add 2 cases without block field
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

Successfully merging this pull request may close these issues.

5 participants