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

Commit

Permalink
Merge branch 'BEM-1115-fix' into release-1.0.0
Browse files Browse the repository at this point in the history
Use level.resolveTechClass() when baseTechPath is specified.
  • Loading branch information
scf2k committed Oct 16, 2013
2 parents 645cfe6 + 234948e commit 0e80de9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tech/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ var TechV1 = exports.Tech = require('./v1').Tech,

// path to base tech module found in baseTechPath property
if (tech.baseTechPath) {
TechClass = getTechClass(tech.baseTechPath, level);
TechClass = level? level.resolveTechClass(tech.baseTechPath, { throwWhenUnresolved: true }):
getTechClass(tech.baseTechPath);
}

// base tech name found in baseTechName property
Expand Down

0 comments on commit 0e80de9

Please sign in to comment.