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 25, 2017
1 parent 0ed21f1 commit 2b5252f
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 2b5252f

Please sign in to comment.