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

Simplify API: custom naming convention #37

Closed
blond opened this issue Oct 20, 2014 · 0 comments · Fixed by #44
Closed

Simplify API: custom naming convention #37

blond opened this issue Oct 20, 2014 · 0 comments · Fixed by #44
Assignees
Milestone

Comments

@blond
Copy link
Member

blond commented Oct 20, 2014

Now we need use BEMNaming class to create instance.

var BEMNaming = bemNaming.BEMNaming;
var myNaming = new BEMNaming({ elem: '__', mod: '--' }); 

myNaming.parse('block__elem--mod');

The bemNaming can be function that returns a BEMNaming instance.

var myNaming = bemNaming({ elem: '__', mod: '--' });

myNaming.parse('block__elem--mod');
@blond blond self-assigned this Oct 20, 2014
@blond blond added this to the 0.4 milestone Oct 20, 2014
@blond blond closed this as completed in #44 Nov 5, 2014
qfox pushed a commit that referenced this issue Jun 6, 2017
Natural BEM entities ordering
qfox pushed a commit that referenced this issue Jun 6, 2017
@qfox qfox added the pkg:naming label Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants