Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Commit

Permalink
refactor(entities): use mod field for entities
Browse files Browse the repository at this point in the history
The `modName` and the `modVal` fields are deprecated.
  • Loading branch information
blond committed Mar 10, 2017
1 parent e619572 commit 6da3cb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/walkers/nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ class LevelWalker {
const tech = item.tech;

// Find file with same modifier name.
if (tech && entity && scope.block === entity.block && scope.modName === entity.modName) {
if (tech && entity && scope.block === entity.block
&& scope.mod.name === (entity.mod && entity.mod.name)) {
this.add(new BemFile(
new BemCell({
entity: entity,
Expand Down Expand Up @@ -212,7 +213,7 @@ class LevelWalker {
if (tech && entity
&& scope.block === entity.block
&& scope.elem === entity.elem
&& scope.modName === entity.modName
&& scope.mod.name === (entity.mod && entity.mod.name)
) {
this.add(new BemFile(
new BemCell({
Expand Down

0 comments on commit 6da3cb5

Please sign in to comment.