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

fix(fields): does not delim fields #78

Merged
merged 2 commits into from Mar 24, 2016
Merged

fix(fields): does not delim fields #78

merged 2 commits into from Mar 24, 2016

Conversation

blond
Copy link
Member

@blond blond commented Mar 23, 2016

Resolved #77

The default namespace and namespaces with custom naming should includes
elemDelim and modDelim fields.

cache[id] = namespace;

return namespace;
},
originalNaming = bemNaming();

methods.forEach(function (method) {
bemNaming[method] = originalNaming[method];
[].concat(methods, fields).forEach(function (name) {
Copy link
Member

Choose a reason for hiding this comment

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

methods.concat(fields)?

Copy link
Member Author

Choose a reason for hiding this comment

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

fix

blond added 2 commits March 24, 2016 14:13
Now namespace includes methods, but not includes `elemDelim` and
`modDelim` fields.

**Example:**

```js
import naming from 'bem-naming';

console.log(naming.elemDelim);
console.log(naming.modDelim);
```

**Actual:**

```
undefined
undefined
```

**Expected:**

```
__
_
```
The default namespace and namespaces with custom naming should includes
`elemDelim` and `modDelim` fields.
@blond blond merged commit 722720e into master Mar 24, 2016
@blond blond deleted the issue-77 branch March 24, 2016 11:18
qfox pushed a commit that referenced this pull request Jun 6, 2017
qfox pushed a commit that referenced this pull request 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 this pull request may close these issues.

None yet

3 participants